Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jirislaby
Copy link
Contributor

Commit a26083b (Fixing libdirs for CMakeLists) switched from
${CMAKE_INSTALL_PREFIX}/lib to ${CMAKE_INSTALL_LIBDIR}. It fixed the
issue with lib vs lib64. But while the former is absolute, the latter
needs not. That causes troubles as rpath can be set to something like
lib64 only. That is bogus.

So fix this by using absolute ${CMAKE_INSTALL_FULL_LIBDIR} from
GNUInstallDirs which is already included and handles the paths correctly.

Fixes #437.

Commit a26083b (Fixing libdirs for CMakeLists) switched from
"${CMAKE_INSTALL_PREFIX}/lib" to "${CMAKE_INSTALL_LIBDIR}". It fixed the
issue with lib vs lib64. But while the former is absolute, the latter
needs not. That causes troubles as rpath can be set to something like
"lib64" only. That is bogus.

So fix this by using absolute "${CMAKE_INSTALL_FULL_LIBDIR}" from
GNUInstallDirs which is already included and handles the paths
correctly.

Fixes stp#437.
@rgov
Copy link
Member

rgov commented Jul 16, 2024

@aytey Are you happy with this change following the discussion in #437? If so please merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpath doesn't work correctly with relative CMAKE_INSTALL_LIBDIR

3 participants