File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,12 @@ include(CMakePackageConfigHelpers)
44# Paths
55if (LSL_UNIXFOLDERS)
66 include (GNUInstallDirs)
7- set (CMAKE_INSTALL_FRAMEWORK_DIR Library/Frameworks CACHE PATH "Install directory for frameworks on macOS" )
7+ if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
8+ set (FRAMEWORK_DIR_DEFAULT Library/Frameworks)
9+ else ()
10+ set (FRAMEWORK_DIR_DEFAULT Frameworks)
11+ endif ()
12+ set (CMAKE_INSTALL_FRAMEWORK_DIR ${FRAMEWORK_DIR_DEFAULT} CACHE PATH "Install directory for frameworks on macOS" )
813else ()
914 set (CMAKE_INSTALL_BINDIR LSL)
1015 set (CMAKE_INSTALL_LIBDIR LSL)
@@ -42,6 +47,7 @@ install(TARGETS ${LSLTargets}
4247 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
4348 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
4449 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
50+ FRAMEWORK DESTINATION ${CMAKE_INSTALL_FRAMEWORK_DIR}
4551 FILE_SET HEADERS DESTINATION ${LSL_INSTALL_INCLUDEDIR}
4652)
4753
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function(addlslexample name extension)
4242 # However, this is not necessary for the examples, as they are not intended to be relocated.
4343# if(APPLE)
4444# set_target_properties(${name} PROPERTIES
45- # INSTALL_RPATH "@loader_path;@loader_path/../lib"
45+ # INSTALL_RPATH "@loader_path;@loader_path/../lib;@loader_path/../Frameworks "
4646# )
4747# elseif(UNIX)
4848# set_target_properties(${name} PROPERTIES
You can’t perform that action at this time.
0 commit comments