Browse Source

Added developer option

Christophe Riccio 15 years ago
parent
commit
3481b82b6b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -8,5 +8,9 @@ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
 add_subdirectory(glm)
 add_subdirectory(doc)
 
+option(GLM_DEVELOPMENT_MODE "GLM development" OFF)
+if(NOT GLM_DEVELOPMENT_MODE)
+	message(FATAL_ERROR "GLM is a header only library, no need to build it")
+endif()