Bug 1022088

Summary: glm should install FindGLM.cmake
Product: [Fedora] Fedora Reporter: Gabriel Rauter <rauter.gabriel>
Component: glmAssignee: Joonas Sarajärvi <muep>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 22CC: muep
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-23 07:54:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gabriel Rauter 2013-10-22 15:41:24 UTC
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):
0.9.4.3-1.fc19

How reproducible:
Try to use find_package(GLM required) in a cmake file when package is installed.

Actual results:
Does not find FindGLM.cmake

Expected results:
Check that GLM is installed.

Additional info:
There is a feature request to include the isntallation routine upstream, but it is not on their priority list.
https://github.com/g-truc/glm/issues/104

Comment 1 Joonas Sarajärvi 2014-12-29 21:09:47 UTC
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.

Comment 2 Jaroslav Reznik 2015-03-03 15:09:38 UTC
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:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 3 Joonas Sarajärvi 2015-08-23 07:54:00 UTC
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.