Skip to content

Commit

Permalink
Another attempt at RPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumsden committed Sep 5, 2024
1 parent 2ee0e66 commit 81c6b74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/modules/SetupCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,14 @@ set(CMAKE_SKIP_BUILD_RPATH FALSE)
# Use same RPATH for build and install
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)

set(CMAKE_INSTALL_RPATH "${DYAD_INSTALL_LIBDIR}")

# 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 "${DYAD_INSTALL_LIBDIR}")

# list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
# "${DYAD_INSTALL_LIBDIR}" _IS_SYSTEM_DIR)
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
"${DYAD_INSTALL_LIBDIR}" _IS_SYSTEM_DIR)

Expand Down

0 comments on commit 81c6b74

Please sign in to comment.