diff --git a/CMakeLists.txt b/CMakeLists.txt index 2540bbf76..bb0d608d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,6 +80,8 @@ set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${SD_LIBDIR}/lib ) +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + CHECK_HEADERS_H() CHECK_FUNCTIONS() CHECK_LIBRARIES()