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)
4
4
# Paths
5
5
if (LSL_UNIXFOLDERS )
6
6
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" )
8
13
else ()
9
14
set (CMAKE_INSTALL_BINDIR LSL )
10
15
set (CMAKE_INSTALL_LIBDIR LSL )
@@ -39,6 +44,7 @@ install(TARGETS ${LSLTargets}
39
44
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
40
45
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
41
46
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
47
+ FRAMEWORK DESTINATION ${CMAKE_INSTALL_FRAMEWORK_DIR}
42
48
FILE_SET HEADERS DESTINATION ${LSL_INSTALL_INCLUDEDIR}
43
49
)
44
50
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function(addlslexample name extension)
42
42
# However, this is not necessary for the examples, as they are not intended to be relocated.
43
43
# if(APPLE)
44
44
# set_target_properties(${name} PROPERTIES
45
- # INSTALL_RPATH "@loader_path;@loader_path/../lib"
45
+ # INSTALL_RPATH "@loader_path;@loader_path/../lib;@loader_path/../Frameworks "
46
46
# )
47
47
# elseif(UNIX)
48
48
# set_target_properties(${name} PROPERTIES
You can’t perform that action at this time.
0 commit comments