Skip to content

Commit d768e93

Browse files
committed
cmake: use CMAKE_INSTALL_RPATH_USE_LINK_PATH
1 parent 6422e15 commit d768e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ endif()
3636
include(GNUInstallDirs)
3737
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
3838
set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)
39-
#set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
39+
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
4040
if(UNIX)
4141
option(BUILD_SHARED_LIBS "Build shared libraries (.so or .dylib)." ON)
4242
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})

0 commit comments

Comments
 (0)