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 instead of hardcoding "lib" #1589

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

harshula
Copy link
Contributor

Since GNUInstallDirs (https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html) is already included, we could use $CMAKE_INSTALL_LIBDIR instead of hardcoding lib.

During my testing $CMAKE_INSTALL_LIBDIR expanded to lib64, not lib:

$ ls /opt/release/linux-rocky8-x86_64/intel-2021.2.0/fms-git.use-cmake-install-libdir_0-git.3289-o47ywsb444ovhjfysqu2jqgzbe7szfrk/
include_r4  lib64

Is lib hardcoded to avoid the library being installed in lib64? If not, please consider this patch.

* Also, use $CMAKE_INSTALL_BINDIR.
Copy link
Contributor

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please, thanks!

@rem1776 rem1776 merged commit 44a211a into NOAA-GFDL:main Sep 10, 2024
28 checks passed
@harshula harshula deleted the use-cmake-install-libdir branch September 11, 2024 04:56
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.

4 participants