FS#71987 - [glm] CMake target has the wrong name

Attached to Project: Community Packages
Opened by Alexander Overvoorde (Overv) - Wednesday, 01 September 2021, 20:34 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


The glmTargets.cmake file (/usr/lib/cmake/glm/glmTargets.cmake) included with this package defines a target named just "glm":

# Create imported target glm
add_library(glm INTERFACE IMPORTED)

While the GLM library talks about a target called "glm::glm": https://github.com/g-truc/glm/blob/master/manual.md#-15-finding-glm-with-cmake

The Ubuntu package libglm-dev does (correctly?) declare the target "glm::glm" in its /usr/lib/cmake/glm/glmConfig.cmake file.

Is there a reason for this difference?
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:02 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/glm/issues/1
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 03 September 2021, 12:17 GMT
glm decided to delete their upstream .cmake files and so I had to pull the latest state into the package. Then they added them again (but haven't made a release with those so far). Next time glm makes a release, I'll switch back to the upstream .cmake files.