Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CMAKE_INSTALL_LIBDIR in CONF_CMAKE_INSTALL_DIR #472

Merged
merged 1 commit into from
May 14, 2022
Merged

Use CMAKE_INSTALL_LIBDIR in CONF_CMAKE_INSTALL_DIR #472

merged 1 commit into from
May 14, 2022

Conversation

cottsay
Copy link
Contributor

@cottsay cottsay commented May 4, 2022

On some platforms (like RedHat ones), CMAKE_INSTALL_LIBDIR is set to lib64 instead of lib. The CMake files should also be installed to lib64, but because CONF_CMAKE_INSTALL_DIR is set unconditionally to use lib, the proper path can't be configured.

This change makes CONF_CMAKE_INSTALL_DIR use the configured CMAKE_INSTALL_LIBDIR value, which defaults to lib.

An alternative to this change would be to allow CONF_CMAKE_INSTALL_DIR to be specified manually rather than unconditionally setting it.

On some platforms (like RedHat ones), CMAKE_INSTALL_LIBDIR is set to
`lib64` instead of `lib`. The CMake files should also be installed to
`lib64`, but because CONF_CMAKE_INSTALL_DIR is set unconditionally to
use `lib`, the proper path can't be configured.

This change makes CONF_CMAKE_INSTALL_DIR use the configured
CMAKE_INSTALL_LIBDIR value, which defaults to `lib`.
@mfontanini mfontanini merged commit 18cbab4 into mfontanini:master May 14, 2022
@cottsay cottsay deleted the cmake-install-dir branch May 14, 2022 18:10
@mfontanini
Copy link
Owner

Thanks @cottsay!

laudrup pushed a commit to laudrup/libtins that referenced this pull request Nov 23, 2022
On some platforms (like RedHat ones), CMAKE_INSTALL_LIBDIR is set to
`lib64` instead of `lib`. The CMake files should also be installed to
`lib64`, but because CONF_CMAKE_INSTALL_DIR is set unconditionally to
use `lib`, the proper path can't be configured.

This change makes CONF_CMAKE_INSTALL_DIR use the configured
CMAKE_INSTALL_LIBDIR value, which defaults to `lib`.
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.

2 participants