diff --git a/CMakeLists.txt b/CMakeLists.txt index 46001a1a..74112032 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ endif() include(GNUInstallDirs) set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) set(CMAKE_BUILD_RPATH_USE_ORIGIN ON) -#set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON) +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON) if(UNIX) option(BUILD_SHARED_LIBS "Build shared libraries (.so or .dylib)." ON) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})