Skip to content

Commit

Permalink
CMake: Set RPATH settings in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jul 12, 2023
1 parent 732e47f commit 9a5ae0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ foreach (p LIB BIN INCLUDE DATA CMAKE)
endforeach ()


set (CMAKE_INSTALL_RPATH ${INSTALL_LIB_DIR})
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set (CMAKE_INSTALL_RPATH ${INSTALL_LIB_DIR} CACHE PATH "rpath")
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "use link path")
if(POLICY CMP0042)
# Set MACOSX_RPATH to ON
cmake_policy(SET CMP0042 NEW)
Expand Down

0 comments on commit 9a5ae0d

Please sign in to comment.