diff options
author | Zsolt Parragi <zsolt.parragi@cancellar.hu> | 2019-02-26 13:36:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-26 19:35:55 (GMT) |
commit | c7213ca87064ba47984b4dd07192389366d5856a (patch) | |
tree | 12469f6a8290de8aae94775e208657a15789bb0b /Tests/CompileFeatures/genex_test.cpp | |
parent | 7c292b37cfb28407f7716c63561c8ff7f0dc5540 (diff) | |
download | CMake-c7213ca87064ba47984b4dd07192389366d5856a.zip CMake-c7213ca87064ba47984b4dd07192389366d5856a.tar.gz CMake-c7213ca87064ba47984b4dd07192389366d5856a.tar.bz2 |
Features: Do not use a lower-than-default standard for requested features
`AddRequiredTargetC(xx)` feature didn't take the default compiler
standard into account, which possibly resulted in the use of an older
standard when some features requested it.
Fixes: #18686
Diffstat (limited to 'Tests/CompileFeatures/genex_test.cpp')
-rw-r--r-- | Tests/CompileFeatures/genex_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CompileFeatures/genex_test.cpp b/Tests/CompileFeatures/genex_test.cpp index 59f9006..4539789 100644 --- a/Tests/CompileFeatures/genex_test.cpp +++ b/Tests/CompileFeatures/genex_test.cpp @@ -15,10 +15,10 @@ # if !HAVE_CXX_STD_11 # error HAVE_CXX_STD_11 is false with CXX_STANDARD == 11 # endif -# if HAVE_CXX_STD_14 +# if HAVE_CXX_STD_14 && !defined(ALLOW_LATER_STANDARDS) # error HAVE_CXX_STD_14 is true with CXX_STANDARD == 11 # endif -# if HAVE_CXX_STD_17 +# if HAVE_CXX_STD_17 && !defined(ALLOW_LATER_STANDARDS) # error HAVE_CXX_STD_17 is true with CXX_STANDARD == 11 # endif #endif |