diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-11 15:23:34 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-15 21:13:22 (GMT) |
commit | 462c630b8a6d832dd37562fcd7b00a75e1ec6e82 (patch) | |
tree | b9dc411d52c339689f2cc05e8fc7f247b8fc6ca9 /Modules | |
parent | 222ec86f7d9ae838d2e460b89985c797c7c90373 (diff) | |
download | CMake-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')
-rw-r--r-- | Modules/Compiler/GNU-CXX-FeatureTests.cmake | 2 |
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") |