From e29e1e9951f7562f6b47c0eac632b960b817cd3c Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 14 May 2010 12:28:12 +0000 Subject: [PATCH] Adds -Wall to the C/C++ flags for any tool using Hurricane. Sets through FindHURRICANE macro. --- hurricane/cmake_modules/FindHURRICANE.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hurricane/cmake_modules/FindHURRICANE.cmake b/hurricane/cmake_modules/FindHURRICANE.cmake index c7a7b7df..37f0635a 100644 --- a/hurricane/cmake_modules/FindHURRICANE.cmake +++ b/hurricane/cmake_modules/FindHURRICANE.cmake @@ -140,4 +140,12 @@ IF(UNIX) HURRICANE_CHECK_LIBRARIES(HURRICANE_GRAPHICAL ${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)