Closed rilpires closed 3 years ago
I'm sorry I didn't test with old cmake. You're right, old - non-namespaced find package/library results are not a target; they are just string variables.
I created PR fixing this. It'll work with cmake 3.10. If you don't mind can you test it works?
Running perfectly. Also, I don't get exactly what is about this GLVND thing to link libOpenGL or libGL, but it was another change I had to make that was solved in this commit too (was linking libOpenGL, only worked if was libGL)
When building on my older laptop (Ubuntu 18.04, cmake version 3.10.2, master branch), I got an error when linking my executable target:
It is saying it can't find these libraries. I found out that was because these libraries are added as:
Now, I only have being learning cmake recently, but I think these variables should be evaluated with ${}, since they aren't targets, am I right? I got it working correctly after changing them to: