summaryrefslogtreecommitdiff
path: root/indra/cmake/LibraryInstall.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-08-26 19:25:14 +0800
committerErik Kundiman <erik@megapahit.org>2023-08-26 19:25:14 +0800
commitb0428375e14c4c9e6bc9dc723bdc94983d3dde6b (patch)
tree02e79cae00fa5c59f9d83bb3a6fb73ac5a0762fd /indra/cmake/LibraryInstall.cmake
parent79cc50c4f93ebe813ddda562b6450561e7650a9d (diff)
Don't install the libraries when they're static
For runtime, they're already part of the executable. For development, we're not there yet. So this reduces the overall package size for now.
Diffstat (limited to 'indra/cmake/LibraryInstall.cmake')
-rw-r--r--indra/cmake/LibraryInstall.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/cmake/LibraryInstall.cmake b/indra/cmake/LibraryInstall.cmake
index dfc777c1cd..01838fe42e 100644
--- a/indra/cmake/LibraryInstall.cmake
+++ b/indra/cmake/LibraryInstall.cmake
@@ -1,4 +1,6 @@
list(REMOVE_ITEM ${PROJECT_NAME}_HEADER_FILES CMakeLists.txt)
#install(FILES ${${PROJECT_NAME}_HEADER_FILES}
# DESTINATION include/${PROJECT_NAME})
-install(TARGETS ${PROJECT_NAME} DESTINATION lib)
+if (BUILD_SHARED_LIBS)
+ install(TARGETS ${PROJECT_NAME} DESTINATION lib)
+endif ()