summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileFeatures
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2022-06-04 15:30:10 (GMT)
committerRaul Tambre <raul@tambre.ee>2022-06-04 15:40:21 (GMT)
commitd5014741c94c8e348d07329ddc86dbe8072c6eab (patch)
tree31ce1fb5e937f73a09bdd2bd082c78f8649e6810 /Tests/RunCMake/CompileFeatures
parent35d975fe4a5726ab901742f30ef53a6551adef43 (diff)
downloadCMake-d5014741c94c8e348d07329ddc86dbe8072c6eab.zip
CMake-d5014741c94c8e348d07329ddc86dbe8072c6eab.tar.gz
CMake-d5014741c94c8e348d07329ddc86dbe8072c6eab.tar.bz2
Tests/CompileFeatures: Fix CMP0128OldSameStandard with default OFF
With CMP0128 OLD compiler extensions are enabled by default regardless of the compiler's default. Fix the test to always check for the extension flag as it was intended to. Fixes: 4a0485be7f4ab06201c478f5a46111ab1e8e773e (cmStandardLevelResolver: Avoid unnecessary flags, fix unset level logic, 2021-04-29)
Diffstat (limited to 'Tests/RunCMake/CompileFeatures')
-rw-r--r--Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake6
1 files changed, 1 insertions, 5 deletions
diff --git a/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake b/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
index ad9619e..a001c5d 100644
--- a/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
@@ -71,11 +71,7 @@ macro(mangle_flags variable)
endmacro()
function(test_cmp0128_old_same_standard)
- if(extensions_default)
- set(flag_ext "_EXT")
- endif()
-
- set(flag "${${lang}${${lang}_STANDARD_DEFAULT}${flag_ext}_FLAG}")
+ set(flag "${${lang}${${lang}_STANDARD_DEFAULT}_EXT_FLAG}")
if(NOT flag)
return()