mgerhardy / caveexpress

CaveExpress is a classic 2D platformer with physics-based gameplay and dozens of levels. CavePacker is a Sokoban game.
http://www.caveproductions.org/
Other
144 stars 20 forks source link

CMAKE: Force evaluation of HEADERONLY parameter #94

Closed akien-mga closed 8 years ago

akien-mga commented 8 years ago

Somehow the part would not be triggered without it, ending up with system glm not being detected properly on Linux.

I'm not 100% sure I understood why it did not work, but the patch fixes the detection of glm for me. (An initial guess was that the HEADERONLY var might be seen as a string, and thus not evaluated as a bool without the ${} operator; but then it should have always been true, since strings are not a false constant).