Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don not stop compilation but just put a warning
authornavarro <navarro@caraja.(none)>
Fri, 15 Jun 2012 09:26:53 +0000 (11:26 +0200)
committernavarro <navarro@caraja.(none)>
Fri, 15 Jun 2012 09:26:53 +0000 (11:26 +0200)
buildtools/Cmake/Flags.cmake

index a8cfb32..e6d51d3 100644 (file)
@@ -72,5 +72,5 @@ if(NOT $ENV{LDFLAGS} STREQUAL "")
 endif(NOT $ENV{LDFLAGS} STREQUAL "")
 
 if(enable_model-checking AND enable_compile_optimizations)
 endif(NOT $ENV{LDFLAGS} STREQUAL "")
 
 if(enable_model-checking AND enable_compile_optimizations)
-    message(FATAL_ERROR "Sorry for now GCC optimizations does not work with model checking.\nPlease turn off optimizations with command:\ncmake -Denable_compile_optimizations=off. ")
+    message(WARNING "Sorry for now GCC optimizations does not work with model checking.\nPlease turn off optimizations with command:\ncmake -Denable_compile_optimizations=off. ")
 endif(enable_model-checking AND enable_compile_optimizations)
 endif(enable_model-checking AND enable_compile_optimizations)