summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/GNU-CXX-FeatureTests.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-11 15:23:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-15 21:13:22 (GMT)
commit462c630b8a6d832dd37562fcd7b00a75e1ec6e82 (patch)
treeb9dc411d52c339689f2cc05e8fc7f247b8fc6ca9 /Modules/Compiler/GNU-CXX-FeatureTests.cmake
parent222ec86f7d9ae838d2e460b89985c797c7c90373 (diff)
downloadCMake-462c630b8a6d832dd37562fcd7b00a75e1ec6e82.zip
CMake-462c630b8a6d832dd37562fcd7b00a75e1ec6e82.tar.gz
CMake-462c630b8a6d832dd37562fcd7b00a75e1ec6e82.tar.bz2
Features: Don't test __cplusplus value for CXX98 on GNU.
The macro is defined to 1 for GNU 4.6, and such a test is only useful for features in language dialects newer than the default (CXX98 for GNU currently). Test only that it has a truthy value.
Diffstat (limited to 'Modules/Compiler/GNU-CXX-FeatureTests.cmake')
-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 03b53e1..8f812da 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -102,4 +102,4 @@ set(_cmake_feature_test_cxx_extern_templates "${_cmake_oldestSupported} && __cpl
# TODO: Should be supported forever?
set(_cmake_feature_test_cxx_func_identifier "${_cmake_oldestSupported} && __cplusplus >= 201103L")
set(_cmake_feature_test_cxx_variadic_macros "${_cmake_oldestSupported} && __cplusplus >= 201103L")
-set(_cmake_feature_test_cxx_template_template_parameters "${_cmake_oldestSupported} && __cplusplus >= 199711L")
+set(_cmake_feature_test_cxx_template_template_parameters "${_cmake_oldestSupported} && __cplusplus")