summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CompileFeatures/CMP0128NewNoUnnecessaryFlag-build-check.cmake
blob: 4f767fabd2dadd96f41779c069d54ff5e8075322 (plain)
1
2
3
4
5
6
7
8
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()