nickguletskii / GLXOSD

GLXOSD is an extensible on-screen display (OSD)/overlay for OpenGL applications running on Linux with X11 which aims to provide similar functionality to MSI Afterburner/RivaTuner OSD. It can show FPS, frame timings, temperatures and more in OpenGL games and applications. It can also be used to benchmark games, much like voglperf.
https://glxosd.nickguletskii.com
MIT License
123 stars 20 forks source link

fix lib paths for non-debian distros #92

Closed kparal closed 7 years ago

kparal commented 7 years ago
This sets the default lib path to lib/ and lib64/ for non-debian distros.
It also allows the variable to be overriden from command line.

Hi, I'm trying to get glxosd 3.x built for Fedora once again. I'm having troubles with a few hardcoded lib paths. I noticed suse folks replace it with sed (lines 82 and 83).

I tried to fix the build script. I don't have any experience with CMake, but this patch seems to work for me. I added CACHE keyword so that the value can be overridden from the command line when running cmake. And I also changed the defaults in the else statement to the most common non-debian paths (which I assume was your original intention and the current situation is just a copy paste error).

Can you verify that the debian build still works OK? Thanks.

nickguletskii commented 7 years ago

Thank you very much for the fix. It turns out building from source on Debian was already broken, and your fix allows all users to manually work around the problem. Unfortunately I don't think there is a way to make this work automatically on all distros, so your patch is very handy!