summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llphysicsextensions
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/llprimitive/llphysicsextensions
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/llprimitive/llphysicsextensions')
-rw-r--r--indra/llprimitive/llphysicsextensions/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llprimitive/llphysicsextensions/CMakeLists.txt b/indra/llprimitive/llphysicsextensions/CMakeLists.txt
index 914fa7b886..fb15e7b782 100644
--- a/indra/llprimitive/llphysicsextensions/CMakeLists.txt
+++ b/indra/llprimitive/llphysicsextensions/CMakeLists.txt
@@ -79,7 +79,9 @@ list(REMOVE_ITEM ${PROJECT_NAME}_HEADER_FILES
LLConvexDecompositionStubImpl.h
LLPhysicsExtensionsStubImpl.h)
#install(FILES ${${PROJECT_NAME}_HEADER_FILES} DESTINATION include/${PROJECT_NAME})
-install(TARGETS ${PROJECT_NAME}stub DESTINATION lib)
+if (BUILD_SHARED_LIBS)
+ install(TARGETS ${PROJECT_NAME}stub DESTINATION lib)
+endif ()
if (LINUX)
IF(CMAKE_BUILD_TYPE MATCHES Release)