Red Hat Bugzilla – Bug 1022088
glm should install FindGLM.cmake
Last modified: 2015-08-23 03:54:00 EDT
Description of problem:
FindGLM.cmake is not installed, so you can not use find_package(GLM required) in cmake. The GLM source already contains the file in the folder util (util/FindGLM.cmake).
Version-Release number of selected component (if applicable):
Try to use find_package(GLM required) in a cmake file when package is installed.
Does not find FindGLM.cmake
Check that GLM is installed.
There is a feature request to include the isntallation routine upstream, but it is not on their priority list.
First, sorry for not responding to this earlier.
My impression is that if a library wants to make itself easily findable by cmake setups, it would ideally install a file named GLMConfig.cmake and not a FindGLM.cmake file. The latter would possibly find some GLM, but not necessarily the one that was installed. The find_package command of CMake is supposed to be able to work with both.
GLM upstream seems to nowadays even install their FindGLM.cmake file by default. I am not entirely sure that it is a good idea, so the future GLM fedora packages will likely not immediately ship it. I am trying to seek better understanding of the situation, though, so I am hopeful that find_package(GLM REQUIRED) will eventually work just fine in Fedora.
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.
More information and reason for this action is here:
The current GLM version in Rawhide installs a bunch of configuration files at the /usr/share/cmake/glm directory. These should provide appropriate results from find_package(GLM) in a CMakeLists.txt file.