summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-05-10 06:58:49 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-05-10 06:58:49 (GMT)
commit5109b0428d0145da4b71464f6c2aa51aca19cb52 (patch)
treeb57a96c67fc9cb00c12ad04cad690513d53f73ca /Modules/Compiler
parent6a9fdbeb48eb16a0f7082329f0d0840bf0c0a98c (diff)
downloadCMake-5109b0428d0145da4b71464f6c2aa51aca19cb52.zip
CMake-5109b0428d0145da4b71464f6c2aa51aca19cb52.tar.gz
CMake-5109b0428d0145da4b71464f6c2aa51aca19cb52.tar.bz2
Features: Fix GNU 4.8.1 version test.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/GNU-CXX-FeatureTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index 0694927..64ddc59 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -3,7 +3,7 @@
set(_oldestSupported "(__GNUC__ * 100 + __GNUC_MINOR__) >= 407")
# Introduced in GCC 4.8.1
-set(GNU481_CXX11 "((__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __GNUC_PATCHLEVEL__ >= 1) && __cplusplus >= 201103L")
+set(GNU481_CXX11 "((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L")
set(_cmake_feature_test_cxx_decltype_incomplete_return_types "${GNU481_CXX11}")
set(_cmake_feature_test_cxx_reference_qualified_functions "${GNU481_CXX11}")
set(GNU48_CXX11 "(__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L")