summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/GNU-CXX-FeatureTests.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-04 07:25:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:55 (GMT)
commitb1c5bd531417b74ddb2cb4365c49f0723c7a8e75 (patch)
tree620469902ddb8409680c00707230962a67678539 /Modules/Compiler/GNU-CXX-FeatureTests.cmake
parentea9c445f066589067992694cb6abc0d70ad97dd7 (diff)
downloadCMake-b1c5bd531417b74ddb2cb4365c49f0723c7a8e75.zip
CMake-b1c5bd531417b74ddb2cb4365c49f0723c7a8e75.tar.gz
CMake-b1c5bd531417b74ddb2cb4365c49f0723c7a8e75.tar.bz2
Features: Add cxx_reference_qualified_functions.
Diffstat (limited to 'Modules/Compiler/GNU-CXX-FeatureTests.cmake')
-rw-r--r--Modules/Compiler/GNU-CXX-FeatureTests.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index 5c1f2c8..b9ed092 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -2,6 +2,9 @@
# Reference: http://gcc.gnu.org/projects/cxx0x.html
set(_oldestSupported "(__GNUC__ * 100 + __GNUC_MINOR__) >= 408")
+# Introduced in GCC 4.8.1
+set(_cmake_feature_test_cxx_reference_qualified_functions
+ "((__GNUC__ * 100 + __GNUC_MINOR__) > 408 || __GNUC_PATCHLEVEL__ >= 1) && __cplusplus >= 201103L")
set(GNU48_CXX11 "(__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L")
set(_cmake_feature_test_cxx_inheriting_constructors "${GNU48_CXX11}")
# TODO: Should be supported by GNU 4.7