Commit 6f7488f8 authored by Mathieu Faverge's avatar Mathieu Faverge

Add possibility to specify the glm directory for mac install

parent d08000da
......@@ -176,9 +176,13 @@ endif(VITE_ENABLE_SERIALIZATION)
if(VITE_ENABLE_VBO)
find_package(GLEW REQUIRED)
if (GLM_INC)
include_directories(${GLM_INC})
list(APPEND CMAKE_REQUIRED_INCLUDES ${GLM_INC})
endif()
check_include_file_cxx(glm/glm.hpp HAVE_GLM_H)
if (NOT HAVE_GLM_H)
message(FATAL_ERROR "libglm-dev package is required")
message(FATAL_ERROR "libglm-dev package is required, you might specify the include directory where to find glm/glm.hpp through -DGLM_INC=/path/to/glm")
endif()
endif(VITE_ENABLE_VBO)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment