diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-14 19:40:11 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-14 19:40:11 +0300 |
commit | 247f3c9e7d62152fd306639365787d084569b4f8 (patch) | |
tree | b58acc2665c63a3b38381424c6ed485c7464ee2a /CMakeLists.txt | |
parent | 30e851b8a536194a78a674dd33fad9a939122ea1 (diff) |
Added better gcc warnings in Cmake.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a593f762387..1c6cd4946cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -196,6 +196,9 @@ IF(UNIX) SET(PLATFORM_LINKFLAGS "-pthread") + # Better warnings + SET(C_WARNINGS "-Wall -Wno-char-subscripts -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wredundant-decls") + INCLUDE_DIRECTORIES(/usr/include /usr/local/include) ENDIF(UNIX) @@ -453,7 +456,7 @@ ENDIF(WITH_GAMEENGINE) IF(WITH_BULLET) SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -DWITH_BULLET ") ENDIF(WITH_BULLET) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PLATFORM_CFLAGS} ") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PLATFORM_CFLAGS} ${C_WARNINGS}") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PLATFORM_CFLAGS} ") #----------------------------------------------------------------------------- |