CMake: OS X build did not have proper warnings set by default, copied the

flags from non-apple Unix configuration.
This commit is contained in:
Brecht Van Lommel 2009-11-22 16:33:00 +00:00
parent 8a50bcb163
commit 43e7950092

@ -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")