diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-20 17:08:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-20 17:08:51 +0400 |
commit | cf7dec94fe96b5905f4c543820c6ad4e27fc7451 (patch) | |
tree | 2b4c4d7955c025e3c6e5dc173dbea11c7fb83afe /CMakeLists.txt | |
parent | 9a1c1f132de971a840816614a0f4657ef1c12c89 (diff) |
switch order cmake includes warning flags so its possible to disable them
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1903a2ad406..90001326997 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1991,9 +1991,10 @@ if(WITH_PYTHON) endif() endif() - -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PLATFORM_CFLAGS} ${C_WARNINGS}") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PLATFORM_CFLAGS} ${CXX_WARNINGS}") +# Include warnings first, so its possible to disable them with user defined flags +# eg: -Wno-uninitialized +set(CMAKE_C_FLAGS "${C_WARNINGS} ${CMAKE_C_FLAGS} ${PLATFORM_CFLAGS}") +set(CMAKE_CXX_FLAGS "${CXX_WARNINGS} ${CMAKE_CXX_FLAGS} ${PLATFORM_CFLAGS}") #------------------------------------------------------------------------------- # Global Defines |