From a6d1c4266e17fec9ffc262d86a2345cfb603e85c Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Thu, 3 Feb 2011 23:48:49 +0000 Subject: [PATCH] Added development option, through an error message to user who want to build GLM --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db4774d0..1ab29af1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,5 +19,8 @@ add_subdirectory(test) add_subdirectory(bench) 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()