Redefine CMake C/C++ CFLAGS to add "-Wall".

This commit is contained in:
Jean-Paul Chaput 2010-05-14 11:56:59 +00:00
parent 4683020d67
commit 2d2c14be2c
1 changed files with 5 additions and 0 deletions

View File

@ -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)