Redefine CMake C/C++ CFLAGS to add "-Wall".
This commit is contained in:
parent
4683020d67
commit
2d2c14be2c
|
@ -6,6 +6,11 @@ IF(COMMAND CMAKE_POLICY)
|
||||||
CMAKE_POLICY(SET CMP0003 NEW)
|
CMAKE_POLICY(SET CMP0003 NEW)
|
||||||
ENDIF(COMMAND CMAKE_POLICY)
|
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/")
|
LIST(INSERT CMAKE_MODULE_PATH 0 "${HURRICANE_SOURCE_DIR}/cmake_modules/")
|
||||||
|
|
||||||
OPTION(BUILD_DOC "Build the documentation (doxygen)" OFF)
|
OPTION(BUILD_DOC "Build the documentation (doxygen)" OFF)
|
||||||
|
|
Loading…
Reference in New Issue