[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51445] trunk/blender/CMakeLists.txt: switch order cmake includes warning flags so its possible to disable them

Campbell Barton ideasman42 at gmail.com
Sat Oct 20 15:08:54 CEST 2012


Revision: 51445
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51445
Author:   campbellbarton
Date:     2012-10-20 13:08:51 +0000 (Sat, 20 Oct 2012)
Log Message:
-----------
switch order cmake includes warning flags so its possible to disable them

Modified Paths:
--------------
    trunk/blender/CMakeLists.txt

Modified: trunk/blender/CMakeLists.txt
===================================================================
--- trunk/blender/CMakeLists.txt	2012-10-20 12:18:00 UTC (rev 51444)
+++ trunk/blender/CMakeLists.txt	2012-10-20 13:08:51 UTC (rev 51445)
@@ -1991,10 +1991,11 @@
 	endif()
 endif()
 
+# 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}")
 
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PLATFORM_CFLAGS} ${C_WARNINGS}")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PLATFORM_CFLAGS} ${CXX_WARNINGS}")
-
 #-------------------------------------------------------------------------------
 # Global Defines
 




More information about the Bf-blender-cvs mailing list