Add USE_RPATH option
This commit is contained in:
@@ -84,9 +84,9 @@ if(CMAKE_BUILD_TYPE MATCHES "Release")
|
|||||||
add_definitions(-DQT_NO_DEBUG_OUTPUT)
|
add_definitions(-DQT_NO_DEBUG_OUTPUT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
option(USE_RPATH "Use RPATH" APPLE)
|
||||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
if(USE_RPATH)
|
||||||
set(CMAKE_INSTALL_RPATH "@loader_path/../Frameworks")
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_program(CCACHE_EXECUTABLE NAMES ccache)
|
find_program(CCACHE_EXECUTABLE NAMES ccache)
|
||||||
|
|||||||
Reference in New Issue
Block a user