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 in CMake for install flexibility #1563
Comments
We're happily using that at work to simplify the install configuration. It works fine for our needs on Windows/Linux/MacOS. |
Should be a pretty straightforward change, just need to clarify which variables should be used for what. So I think these are the ones we want to replace, and my suggested replacements. Once the SFML team confirm these a PR can be done pretty quickly
Not sure what we should do with |
I think for pkg-config files, it'll be good to use |
Fixed with #1576 |
Right now, we have a lot of folders hard coded for install rules here. I think that for that, we can use GNUInstallDirs module which sets a lot of sensible defaults which can easily be redefined as needed, e.g. if you want libraries to go to some other place than
${CMAKE_INSTALL_PREFIX}/lib
, you'll be able to set${CMAKE_INSTALL_LIBDIR}
.This will make lives of our *BSD folks easier, plus it will allow users of some unconventional distros to be able to configure install directories as they want.
Thoughts?
(Related to #189, #1561, #1510)
The text was updated successfully, but these errors were encountered: