mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-15 02:49:42 -05:00
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: 4a0485be7f (cmStandardLevelResolver: Avoid
unnecessary flags, fix unset level logic, 2021-04-29)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user