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

cmake: Use GNUInstallDirs to install data directories #41

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

Conversation

tgurr
Copy link

@tgurr tgurr commented Apr 12, 2023

Solves issues with cross environments where prefix is set to e.g. -DCMAKE_INSTALL_PREFIX:PATH=/usr/x86_64-pc-linux-gnu and the arch independent files would end up under the prefix as well instead of /usr/share.

Note: variables offered by CMake GNUInstallDirs could probably be used for the various other stuff as well like for getting rid of the __lib hack by using CMAKE_INSTALL_LIBDIR but I just wanted to solve an actual issue I ran across with this PR.

@acmel
Copy link
Owner

acmel commented Apr 12, 2023 via email

@tgurr
Copy link
Author

tgurr commented Apr 12, 2023

Can I add a Signed-off-by: you Tothe patch?

@acmel Sure yes, whatever you want. Also please tell if I should rather do it myself if that's easier for you.

@acmel
Copy link
Owner

acmel commented Apr 12, 2023 via email

@tgurr
Copy link
Author

tgurr commented May 16, 2023

Can I add a Signed-off-by: you To the patch?

@acmel I've updated the PR to add the requested Signed-off-by.

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