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 GNUInstallDirs module for cmake install paths #1576
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beyond the example directory thingy, this looks good. Tested it on Windows 10 and Debian 9.
@jcowgill can you give feedback on this, especially w.r.t. pkgconfig? |
Presumably this section of
|
And I expect to do this properly, all occurrences of |
And for pkg-config specifically, |
Thanks for the feedback @jcowgill, think I've covered them all now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, it looks good. I'll test on Linux soon.
I feel like we need to summarize somewhere which variables from GNUInstallDirs are used, because previously we had variables which were visible at configuration step, but now users might not know which variables control where stuff gets installed.
Not sure how much benefit there is to us explaining these variables, and it's kind of out of SFML scope. Realistically the user should only need to worry about CMAKE_INSTALL_PREFIX, and anything else is more advanced usage which they can probably work out on their own. I think if we add a comment linking to the cmake docs this should suffice, but I'm happy to add more if that's the decision |
Yeah, agreed. Okay, it's good enough for now. 👍 |
Have just noticed this will break the xcode templates which rely on SFML_DEPENDENCIES_INSTALL_PREFIX to copy the frameworks into the app bundle... I can probably change it to use the generator expression for the output directory of SFML if that's suitable? |
Sounds good to me, even though I don't fully understand the implications. Looks like the Android build fails, do we have to adjust builbot as well? |
There are still a few instances of |
I think that's the pkg config stuff sorted @jcowgill? For the xcode template, even after updating the paths in the post build step it still fails to link for me, and I don't see how it would work as it doesn't set the library search paths as far as I can tell. I also haven't managed to get it working in the latest master anyway, so I'm inclined to say this is a separate issue to discuss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think all the pkg-config stuff is sorted now. Looks good on the Linux side. 👍
Description
This replaces our custom install paths with the ones from the cmake GnuInstallDirs module
This PR is related to the issue #1563
Tasks
How to test this PR?
Build and install SFML (preferably to a custom CMAKE_INSTALL_PREFIX) and check the directory structure.
Seems I'm not able to request reviewers, but @eliasdaler , @fxcoudert and @Ceylo would be great to take a look