cmake/Tests/RunCMake/CompileFeatures/CMP0128NewNoUnnecessaryFlag-build-check.cmake

9 lines
203 B
CMake
Raw Normal View History

2021-11-20 13:41:27 +01:00
foreach(flag @flags@)
string(FIND "${actual_stdout}" "${flag}" position)
if(NOT position EQUAL -1)
set(RunCMake_TEST_FAILED "\"${flag}\" compile flag found.")
break()
endif()
endforeach()