-
Notifications
You must be signed in to change notification settings - Fork 123
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
Fix pkgconfig files install path #234
Conversation
It is recommended in CMake's official documentation to use relative path for DESTINATION parameter. Using absolute paths do not work with the cmake --install command's --prefix option.
The variable CMAKE_INSTALL_LIBDIR is used to define CSFML_PKGCONFIG_DIR variable in cmake/Config.cmake file. Copy-pasted from SFML's CMakeLists.txt file.
One problem though is that CMake |
@mgrojo can you give this a try? |
I followed the same steps as in #233 with this branch, and it worked this time.
Thanks @kimci86. |
Thanks for fixing this! 🙂 |
Fix for #233
See commit messages for details.
I tested this PR running this on Ubuntu:
cmake -S . -B build cmake --build build cmake --install build --prefix whatever
Files are installed as expected without
sudo
.