diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-22 19:33:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-22 19:33:00 +0300 |
commit | 43e7950092f2e25cd20926e8810f9df7bd5ab9c1 (patch) | |
tree | 24bc3c4567a01ea878e812d8630b2b9c452d132a /CMakeLists.txt | |
parent | 8a50bcb163939f4e5b8f2712671d4f133c956d52 (diff) |
CMake: OS X build did not have proper warnings set by default, copied the
flags from non-apple Unix configuration.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c7e08d7b1ba..749a99f5919 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") |