aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b5721a0e..fc8e2c5b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,15 +51,16 @@ SET(EXTRA_LIBS m ${EXTRA_LIBS})
IF("${MSVC}")
# ???
ELSE()
- CHECK_C_COMPILER_FLAG(-W HAVE_W_SWITCH)
- IF("${HAVE_W_SWITCH}")
- ADD_DEFINITIONS(-W)
+ ADD_DEFINITIONS(-Wall)
+ CHECK_C_COMPILER_FLAG(-Wextra HAVE_W_EXTRA)
+ IF("${HAVE_W_EXTRA}")
+ ADD_DEFINITIONS(-Wextra)
ENDIF()
- ADD_DEFINITIONS(-Wall)
IF(WERROR)
ADD_DEFINITIONS(-Werror)
ENDIF()
+
IF(DEBUG)
ADD_DEFINITIONS(-g3)
ELSEIF(NODEBUG)