You are not logged in.
Pages: 1
Topic closed
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.cmakebut 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
Hi,
I had a similar issue with glm today.
I fixed it by installing glm-git from aur instead of glm.
Offline
Closing this old topic.
Offline
Pages: 1
Topic closed