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/CMakeLists.txt | |
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/CMakeLists.txt')
-rw-r--r-- | Tests/CompileFeatures/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index b0bc656..6ccdcc3 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -338,11 +338,11 @@ else() add_executable(CompileFeaturesGenex2 genex_test.cpp) target_compile_features(CompileFeaturesGenex2 PRIVATE cxx_std_11) - target_compile_definitions(CompileFeaturesGenex2 PRIVATE ${genex_test_defs}) + target_compile_definitions(CompileFeaturesGenex2 PRIVATE ${genex_test_defs} ALLOW_LATER_STANDARDS=1) add_library(std_11_iface INTERFACE) target_compile_features(std_11_iface INTERFACE cxx_std_11) add_executable(CompileFeaturesGenex3 genex_test.cpp) target_link_libraries(CompileFeaturesGenex3 PRIVATE std_11_iface) - target_compile_definitions(CompileFeaturesGenex3 PRIVATE ${genex_test_defs}) + target_compile_definitions(CompileFeaturesGenex3 PRIVATE ${genex_test_defs} ALLOW_LATER_STANDARDS=1) endif() |