Adds -Wall to the C/C++ flags for any tool using Hurricane.

Sets through FindHURRICANE macro.
This commit is contained in:
Jean-Paul Chaput 2010-05-14 12:28:12 +00:00
parent 2d2c14be2c
commit e29e1e9951
1 changed files with 8 additions and 0 deletions

View File

@ -140,4 +140,12 @@ IF(UNIX)
HURRICANE_CHECK_LIBRARIES(HURRICANE_GRAPHICAL ${HURRICANE_FIND_REQUIRED}) HURRICANE_CHECK_LIBRARIES(HURRICANE_GRAPHICAL ${HURRICANE_FIND_REQUIRED})
HURRICANE_CHECK_LIBRARIES(HURRICANE_PYTHON ${HURRICANE_FIND_REQUIRED}) HURRICANE_CHECK_LIBRARIES(HURRICANE_PYTHON ${HURRICANE_FIND_REQUIRED})
#
# Adds -Wall to the C/C++ flags.
#
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)
ENDIF(UNIX) ENDIF(UNIX)