From 236ef49a6730dc12084b600fd4a295f3559c8089 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Thu, 17 Feb 2011 11:45:17 +0000 Subject: [PATCH] Updated the FATAL_ERROR option --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e1262f0..d0889557 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,9 +21,9 @@ 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() +option(GLM_TEST_MODE "GLM test" OFF) +if(NOT GLM_TEST_MODE) + message(FATAL_ERROR "GLM is a header only library, no need to build it. Set the option GLM_TEST_MODE to ON if you want to run the test bench") +endif() install( DIRECTORY glm DESTINATION include )