mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Commit 4a0485be (cmStandardLevelResolver: Avoid unnecessary flags, fix unset
level logic, 2021-04-29) unintentionally changed the behavior by modifying the
code to match a pre-existing comment. The resulting behavior change however
matches the intentions of CMP0128, so we simply need to guard it.
Fixes #23122.
13 lines
279 B
CMake
13 lines
279 B
CMake
foreach(flag @flags@)
|
|
string(FIND "${actual_stdout}" "${flag}" position)
|
|
|
|
if(NOT position EQUAL -1)
|
|
set(found TRUE)
|
|
break()
|
|
endif()
|
|
endforeach()
|
|
|
|
if(NOT found)
|
|
set(RunCMake_TEST_FAILED "No compile flags from \"@flags@\" found for LANG_STANDARD=default.")
|
|
endif()
|