← Back to team overview

kicad-developers team mailing list archive

GLM versioning

 

I had a look at GLM issues and it's a bigger hassle than I initially
imagined.

1. earlier versions provided a very primitive FindGLM which did not handle
versions
2. current versions deprecated FindGLM in favor of the glmConfig.cmake
files etc
which in principle allow you to use glm as an 'external' project - except
of course
(a) we still lack a FindGLM (b) installation of these cmake external
project files
is unreliable across distributions and platforms and (c) even if these
external
project files were present it is not clear how we take advantage of the
version info.

On top of all that, GLM hard-codes the revision number into the top level
CMakeLists.txt and there is no guarantee that this number is the same as
the actual version information which is stored as #defines in setup.hpp.

SO - it looks to me like the most sensible thing to do is (a) take the
deprecated
FindGLM.cmake file as a primitive starting point to implement our own
version
which supports versioning. The greatest challenge then is extracting the
version information from setup.hpp in a platform independent way.

- Cirilo

Follow ups