Skip to content

Commit

Permalink
include rpath in installed binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
James Shen committed Jan 8, 2025
1 parent f850dcc commit 84c4c26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ if(EXISTS "${LOC_PATH}")
message(FATAL_ERROR "You cannot build in a source directory (or any directory with a CMakeLists.txt file). Please make a build subdirectory. Feel free to remove CMakeCache.txt and CMakeFiles.")
endif()


# Use RPATH for install
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")

# 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 default build type
set(default_build_type "Release")
Expand Down

0 comments on commit 84c4c26

Please sign in to comment.