kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #21765
OSX glm include dir incorrect
Hi,
on OSX in CMakeLists.txt
find_package( GLM 0.9.5.4 REQUIRED ) in my setup (osx + brew) returns
incorrect path resulting in compiling error glm/glm.hpp not found.
Include path found is: /usr/local/include/glm.
Correct should be: /usr/local/include because of includes from sources
are <glm/glm.hpp>
workaround could be changes in source to include <glm.hpp> or change
includes from cmake
my workaround:
# Find GLM library
find_path(GLM_INCLUDE_DIR "glm/glm.hpp")
if(GLM_INCLUDE_DIR STREQUAL "GLM_INCLUDE_DIR-NOTFOUND")
message(STATUS "glm not found")
else()
message(STATUS "glm include dir: ${GLM_INCLUDE_DIR}")
include_directories("${GLM_INCLUDE_DIR}")
endif()
however this will not check glm version, could you please evaluate this
workaround?
regards
Brano
Follow ups