From b0428375e14c4c9e6bc9dc723bdc94983d3dde6b Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sat, 26 Aug 2023 19:25:14 +0800 Subject: 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. --- indra/llprimitive/llphysicsextensions/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'indra/llprimitive') 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) -- cgit v1.2.3