Skip to content

Commit

Permalink
Makes CMAKE_INSTALL_RPATH_USE_LINK_PATH and CMAKE_INSTALL_RPATH cache…
Browse files Browse the repository at this point in the history
… variables to improve compatibility with Spack
  • Loading branch information
ilumsden committed Sep 5, 2024
1 parent 1772cc1 commit 00fe881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/modules/SetupCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)

# Add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the install RPATH
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "")

set(CMAKE_INSTALL_RPATH "${DYAD_INSTALL_LIBDIR}")
set(CMAKE_INSTALL_RPATH "${DYAD_INSTALL_LIBDIR}" CACHE STRING "")

list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
"${DYAD_INSTALL_LIBDIR}" _IS_SYSTEM_DIR)
Expand Down

0 comments on commit 00fe881

Please sign in to comment.