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

[c]: use GNUInstallDirs to help determine installation paths #345

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

musicinmybrain
Copy link
Contributor

In particular, this handles cases where libraries or .cmake files should be installed in e.g. /usr/lib64 rather than /usr/lib.

https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

The C++ library already does this:

include(GNUInstallDirs)

🤔 What's changed?

Use the GNUInstallDirs CMake module to help determine installation paths for C libraries, headers, and configs.

⚡️ What's your motivation?

Without this, on OS’s and architectures that use “multilib” directory layouts (e.g. Fedora on x86_64), the libraries and configs would be installed system-wide under /usr/lib when they should be in /usr/lib64. Using GNUInstallDirs fixes that in the general case.

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

♻️ Anything particular you want feedback on?

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation. ???
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

In particular, this handles cases where libraries should be installed in
e.g. `/usr/lib64` rather than `/usr/lib`.

https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
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.

1 participant