Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2012-12-09 15:31:34 +0400
committerTon Roosendaal <ton@blender.org>2012-12-09 15:31:34 +0400
commitb714d7fde6cd85f625e87b0c0b675bb2812884cd (patch)
tree9663d0e1b6cf73bc1f3b144fd1e62ad867f63892
parent22505c10f8b16e4e7064db9bd8636a4cbce8c6e0 (diff)
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.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3fa59ac5178..321cf0347fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1870,7 +1870,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
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 @@ if(CMAKE_COMPILER_IS_GNUCC)
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()