diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-08-26 19:25:14 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-08-26 19:25:14 +0800 |
commit | b0428375e14c4c9e6bc9dc723bdc94983d3dde6b (patch) | |
tree | 02e79cae00fa5c59f9d83bb3a6fb73ac5a0762fd /indra/llprimitive/llphysicsextensions | |
parent | 79cc50c4f93ebe813ddda562b6450561e7650a9d (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.txt | 4 |
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) |