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:
Xavier Del Campo Romero 2025-01-17 06:30:03 +01:00
parent 7e0f8b111a
commit 90f44af3b1
Signed by: xavi
GPG key ID: 84FF3612A9BF43F2

View file

@ -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()