Closed kparal closed 8 years ago
Thank you. I'll merge this once I get the chance to recheck the Debian packages.
The CMake files in GLXOSD version 3 use GNUInstallDirs wherever it is possible. Thank you very much for reporting this issue and thank you very much for your pull request.
Do not hardcode
<prefix>/lib/
as a library path, that is used in Debian, but not in many other distributions (e.g. Fedora). Use GNUInstallDirs cmake module to automatically get the proper location for your distribution.A relevant discussion is here: https://cmake.org/pipermail/cmake/2013-July/055371.html The cmake module is documented here: https://cmake.org/cmake/help/v3.0/module/GNUInstallDirs.html
This patch helped me to build glxosd on Fedora (when run as
cmake -DCMAKE_INSTALL_PREFIX=/usr -DINSTALLATION_SUFFIX_64=lib64 -DINSTALLATION_SUFFIX_32=lib -G "Unix Makefiles"
).Please note that I'm not a C developer and I have no experience with cmake, so please make sure this still builds well for you on Debian/Ubuntu.