summaryrefslogtreecommitdiff
path: root/indra/newview/ViewerInstall.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-07-11 15:33:55 +0800
committerErik Kundiman <erik@megapahit.org>2024-07-11 15:33:55 +0800
commitf539140ed433f70afec6ccd1b7c21d13e850c897 (patch)
tree464ddcc8162e0c7f900791a4a86c1c081ef8e79d /indra/newview/ViewerInstall.cmake
parent0343899c5ffc6993b7ff81ea8dc376042c831fca (diff)
Separate file for fixing Mac package dependencies
since the variable PACKAGE is not available to check any more by that stage.
Diffstat (limited to 'indra/newview/ViewerInstall.cmake')
-rw-r--r--indra/newview/ViewerInstall.cmake15
1 files changed, 11 insertions, 4 deletions
diff --git a/indra/newview/ViewerInstall.cmake b/indra/newview/ViewerInstall.cmake
index 02762049a5..a01561128a 100644
--- a/indra/newview/ViewerInstall.cmake
+++ b/indra/newview/ViewerInstall.cmake
@@ -73,10 +73,17 @@ if (DARWIN)
)
endif ()
- configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/FixBundle.cmake.in
- ${CMAKE_CURRENT_BINARY_DIR}/FixBundle.cmake
- )
+ if (PACKAGE)
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/FixPackage.cmake.in
+ ${CMAKE_CURRENT_BINARY_DIR}/FixBundle.cmake
+ )
+ else (PACKAGE)
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/FixBundle.cmake.in
+ ${CMAKE_CURRENT_BINARY_DIR}/FixBundle.cmake
+ )
+ endif (PACKAGE)
install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/FixBundle.cmake)
else (DARWIN)