aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdactor
diff options
context:
space:
mode:
Diffstat (limited to 'tdactor')
-rw-r--r--tdactor/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/tdactor/CMakeLists.txt b/tdactor/CMakeLists.txt
index 2a7c68f5d..0b0ecd1db 100644
--- a/tdactor/CMakeLists.txt
+++ b/tdactor/CMakeLists.txt
@@ -51,7 +51,9 @@ if (NOT CMAKE_CROSSCOMPILING)
target_link_libraries(example PRIVATE tdactor)
endif()
-install(TARGETS tdactor EXPORT TdStaticTargets
- LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
-)
+if (NOT TD_ENABLE_FILTERED_INSTALL OR NOT BUILD_SHARED_LIBS)
+ install(TARGETS tdactor EXPORT TdStaticTargets
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+ )
+endif()