From 2d2c14be2c29c3d5ee212214543cc43201714200 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 14 May 2010 11:56:59 +0000 Subject: [PATCH] Redefine CMake C/C++ CFLAGS to add "-Wall". --- hurricane/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hurricane/CMakeLists.txt b/hurricane/CMakeLists.txt index b6c770b6..a1886ce8 100644 --- a/hurricane/CMakeLists.txt +++ b/hurricane/CMakeLists.txt @@ -6,6 +6,11 @@ IF(COMMAND CMAKE_POLICY) CMAKE_POLICY(SET CMP0003 NEW) ENDIF(COMMAND CMAKE_POLICY) +SET(CMAKE_C_FLAGS_DEBUG "-g -Wall" CACHE STRING "Debug options." FORCE) +SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall" CACHE STRING "Debug options." FORCE) +SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -Wall" CACHE STRING "Release options." FORCE) +SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -Wall" CACHE STRING "Release options." FORCE) + LIST(INSERT CMAKE_MODULE_PATH 0 "${HURRICANE_SOURCE_DIR}/cmake_modules/") OPTION(BUILD_DOC "Build the documentation (doxygen)" OFF)