CMakeLists.txt: Use CMAKE_INSTALL_RPATH_USE_LINK_PATH
When set, this CMake variable converts the rpath from the build directory to the installation directory. [1] [1]: https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_RPATH_USE_LINK_PATH.html
This commit is contained in:
parent
7e0f8b111a
commit
90f44af3b1
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue