[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52824] trunk/blender/CMakeLists.txt: Further refined the check for GCC 4. 2 to not add the flag -Wuninitialized then.

Ton Roosendaal ton at blender.org
Sun Dec 9 12:31:39 CET 2012


Revision: 52824
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52824
Author:   ton
Date:     2012-12-09 11:31:34 +0000 (Sun, 09 Dec 2012)
Log Message:
-----------
Further refined the check for GCC 4.2 to not add the flag -Wuninitialized then.
Now it checks for "Not less then 4.3" because it doesnt have >= 4.3.

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

Modified: trunk/blender/CMakeLists.txt
===================================================================
--- trunk/blender/CMakeLists.txt	2012-12-09 10:48:18 UTC (rev 52823)
+++ trunk/blender/CMakeLists.txt	2012-12-09 11:31:34 UTC (rev 52824)
@@ -1870,7 +1870,7 @@
 	ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_NO_DIV_BY_ZERO -Wno-div-by-zero)
 
 	# gcc 4.2 gives annoying warnings on every file with this
-	if ("${CMAKE_C_COMPILER_VERSION}" VERSION_GREATER "4.2")
+	if (NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS "4.3")
 		ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_UNINITIALIZED -Wuninitialized)
 	endif()
 
@@ -1890,7 +1890,7 @@
 	ADD_CHECK_CXX_COMPILER_FLAG(CXX_WARNINGS CXX_WARN_NO_DIV_BY_ZERO -Wno-div-by-zero)
 
 	# gcc 4.2 gives annoying warnings on every file with this
-	if ("${CMAKE_C_COMPILER_VERSION}" VERSION_GREATER "4.2")
+	if (NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS "4.3")
 		ADD_CHECK_CXX_COMPILER_FLAG(CXX_WARNINGS CXX_WARN_UNINITIALIZED -Wuninitialized)
 	endif()
 




More information about the Bf-blender-cvs mailing list