CMake: OS X build did not have proper warnings set by default, copied the
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 22 Nov 2009 16:33:00 +0000 (16:33 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 22 Nov 2009 16:33:00 +0000 (16:33 +0000)
flags from non-apple Unix configuration.

CMakeLists.txt

index c7e08d7b1ba8840617fa745572971b9486106a08..749a99f591931357c91b098dae7bd08f086318f6 100644 (file)
@@ -594,6 +594,10 @@ IF(APPLE)
                SET(CMAKE_C_FLAGS_RELEASE "-O3 -ftree-vectorize -msse -msse2 -msse3 -mssse3 -fvariable-expansion-in-unroller")
        ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386")
 
+       # Better warnings
+       SET(C_WARNINGS "-Wall -Wno-char-subscripts -Wpointer-arith -Wcast-align -Wdeclaration-after-statement")
+       SET(CXX_WARNINGS "-Wall -Wno-invalid-offsetof -Wno-sign-compare")
+
 ENDIF(APPLE)
 
 IF(CMAKE_SYSTEM_NAME MATCHES "Linux")