cmake/Tests/RunCMake/CompileFeatures/NoUnnecessaryFlag-build-check.cmake
2021-11-20 13:41:27 +01:00

9 lines
203 B
CMake

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()