Skip to content

Commit

Permalink
cmake: add link path to rpath (#2839)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Dec 20, 2023
1 parent 4e12c89 commit 38f7823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ set(CMAKE_C_STANDARD 11)
set(CMAKE_C_EXTENSIONS OFF)

set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

if(MSVC)
add_compile_options("/W3")
Expand Down

0 comments on commit 38f7823

Please sign in to comment.