Skip to content

cmake: Use GNUInstallDirs to install data directories#41

Open
tgurr wants to merge 1 commit intoacmel:masterfrom
tgurr:cmake
Open

cmake: Use GNUInstallDirs to install data directories#41
tgurr wants to merge 1 commit intoacmel:masterfrom
tgurr:cmake

Conversation

@tgurr
Copy link
Copy Markdown

@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
Copy Markdown
Owner

acmel commented Apr 12, 2023 via email

@tgurr
Copy link
Copy Markdown
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
Copy Markdown
Owner

acmel commented Apr 12, 2023 via email

@tgurr
Copy link
Copy Markdown
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.

@tgurr
Copy link
Copy Markdown
Author

tgurr commented Oct 25, 2024

Gentle ping.

Signed-off-by: Timo Gurr <timo.gurr@gmail.com>
@tgurr
Copy link
Copy Markdown
Author

tgurr commented Dec 18, 2024

Updated to not duplicate the include(GNUInstallDirs) now that it has recently been added with a2abd94

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