summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-07-05 12:00:15 +0800
committerErik Kundiman <erik@megapahit.org>2024-07-05 12:00:15 +0800
commit2775a604a0432132e251a74067d06a30f864523c (patch)
treecc0466ee7c9299e235f22d3d3092893228b62042 /indra
parent0627bb28339ffc678ca93e823d844407134d8aa1 (diff)
`make install` on macOS installs SLPlugin app
Turns out the custom command was only for bundling it, not necessarily installing it.
Diffstat (limited to 'indra')
-rw-r--r--indra/llplugin/slplugin/CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/llplugin/slplugin/CMakeLists.txt b/indra/llplugin/slplugin/CMakeLists.txt
index cdf77187c3..c3752a4705 100644
--- a/indra/llplugin/slplugin/CMakeLists.txt
+++ b/indra/llplugin/slplugin/CMakeLists.txt
@@ -65,9 +65,14 @@ if (BUILD_SHARED_LIBS)
"${LINK_FLAGS_RELEASE} -Wl,--allow-shlib-undefined")
endif ()
-if (INSTALL AND NOT DARWIN)
- install(TARGETS ${PROJECT_NAME} DESTINATION libexec/${VIEWER_BINARY_NAME})
-endif ()
+if (INSTALL)
+ if (DARWIN)
+ install(TARGETS ${PROJECT_NAME}
+ DESTINATION ${viewer_BINARY_DIR}/${VIEWER_CHANNEL}.app/Contents/Resources)
+ else (DARWIN)
+ install(TARGETS ${PROJECT_NAME} DESTINATION libexec/${VIEWER_BINARY_NAME})
+ endif (DARWIN)
+endif (INSTALL)
if (LL_TESTS)
ll_deploy_sharedlibs_command(SLPlugin)