Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sorry, if not enable debug option set -DNDEBUG
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 29 Mar 2011 14:53:59 +0000 (14:53 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 29 Mar 2011 14:53:59 +0000 (14:53 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9886 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/Flags.cmake

index 180fcd2..6d0cc56 100644 (file)
@@ -16,9 +16,9 @@ if(enable_compile_optimizations)
        set(optCFLAGS "-O3 -finline-functions -funroll-loops -fno-strict-aliasing ")
 endif(enable_compile_optimizations)
 
-if(enable_debug)
+if(NOT enable_debug)
                set(CMAKE_C_FLAGS "-DNDEBUG ${CMAKE_C_FLAGS}")
-endif(enable_debug)
+endif(NOT enable_debug)
 
 set(CMAKE_C_FLAGS "${optCFLAGS}${warnCFLAGS}${CMAKE_C_FLAGS}")