diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-01 21:00:49 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-01 21:00:49 (GMT) |
commit | 998ed4ca0a922faf08c7ee3e95f337ff9e8f02c1 (patch) | |
tree | d2f0ed10f19eac8db740d2603dff073686f33f95 /Modules/Compiler/GNU-CXX-FeatureTests.cmake | |
parent | 07cbe3640e3afc879a07b6510de4c6e437f43f3e (diff) | |
download | CMake-998ed4ca0a922faf08c7ee3e95f337ff9e8f02c1.zip CMake-998ed4ca0a922faf08c7ee3e95f337ff9e8f02c1.tar.gz CMake-998ed4ca0a922faf08c7ee3e95f337ff9e8f02c1.tar.bz2 |
Features: Record cxx_variable_templates for GNU 5.0.
Diffstat (limited to 'Modules/Compiler/GNU-CXX-FeatureTests.cmake')
-rw-r--r-- | Modules/Compiler/GNU-CXX-FeatureTests.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake index 9c98e44..6de06dd 100644 --- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake +++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake @@ -1,8 +1,15 @@ # Reference: http://gcc.gnu.org/projects/cxx0x.html +# http://gcc.gnu.org/projects/cxx1y.html set(_cmake_oldestSupported "(__GNUC__ * 100 + __GNUC_MINOR__) >= 407") +set(GNU50_CXX14 "(__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L") +set(_cmake_feature_test_cxx_variable_templates "${GNU50_CXX14}") + +# GNU 4.9 in c++14 mode sets __cplusplus to 201300L, so don't test for the +# correct value of it below. +# https://patchwork.ozlabs.org/patch/382470/ set(GNU49_CXX14 "(__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L") set(_cmake_feature_test_cxx_contextual_conversions "${GNU49_CXX14}") set(_cmake_feature_test_cxx_attribute_deprecated "${GNU49_CXX14}") |