You are not logged in.

#1 2018-04-25 23:53:56

31k3
Member
Registered: 2018-04-25
Posts: 1

community/glm package: Error using cmake find_package(glm, REQUIRED)

I have installed the community/glm package (Version 0.9.8.5-2) and I am now trying to use this header-only library in a cmake project.
My CMakeLists.txt includes

find_package(glm REQUIRED)

and cmake is able to find the module at

/lib64/cmake/glm/glmConfig.cmake

but it's not able to find the include directory.

CMake Error at /lib64/cmake/glm/glmConfig.cmake:10 (message):
  File or directory //include referenced by variable GLM_INCLUDE_DIRS does
  not exist !
Call Stack (most recent call first):
  /lib64/cmake/glm/glmConfig.cmake:16 (set_and_check)
  CMakeLists.txt:8 (find_package)

To me, this looks similar to a fixed problem on Debian and vaguely this bug on Archlinux, which should be fixed according to the PKGBUILD (line 35), but since I am new to CMake, I would like to hear someone elses opinion before reporting a bug to the package maintainer.

Complete CMakeLists.txt:

cmake_minimum_required(VERSION 3.0)
project(assignments)

find_package(OpenGL REQUIRED)
find_package(glfw3 REQUIRED)
find_package(GLEW REQUIRED)
find_package(glm REQUIRED)

add_executable(assignment1 main.cpp application.cpp inputmanager.cpp)
target_link_libraries(assignment1 OpenGL::GL GLEW::GLEW glfw assimp)
target_compile_features(assignment1 PUBLIC cxx_std_14)

Last edited by 31k3 (2018-04-26 12:03:18)

Offline

#2 2021-08-21 17:29:02

MRFROID
Member
Registered: 2021-08-21
Posts: 1

Re: community/glm package: Error using cmake find_package(glm, REQUIRED)

Hi,

I had a similar issue with glm today.
I fixed it by installing glm-git from aur instead of glm.

Offline

#3 2021-08-21 22:23:20

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: community/glm package: Error using cmake find_package(glm, REQUIRED)

Closing this old topic.

Offline

Board footer

Powered by FluxBB