build: Do not hard-code /usr/${SD_LIBDIR}/lib in RUNPATH.

This doesn't apply to every system.  For those systems on which it
does apply, their tooling should be setting CMAKE_INSTALL_RPATH to
their system-global locations.

* CMakeLists.txt (CMAKE_INSTALL_RPATH): Remove /usr/${SD_LIBDIR}/lib.
This commit is contained in:
Maxim Cournoyer 2025-02-01 14:08:40 +09:00
parent 17aa56b432
commit 7a3fa96a54
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -94,7 +94,6 @@ INCLUDE(cmake/checks.cmake)
set(CMAKE_INSTALL_RPATH
${CMAKE_INSTALL_RPATH}
${CMAKE_INSTALL_PREFIX}/${SD_LIBDIR}/lib
/usr/${SD_LIBDIR}/lib
)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)