blob: 1a0c488e624f6a3e05e94d77612e74a9dbd9828f [file] [edit]
# When the target's flags already contain -emit-module-path, the emit-module
# edge should not append a second one that clobbers it.
# Match command lines that have two -emit-module-path flags on the same line.
string(
REGEX MATCHALL
"-emit-module-path [^\n]*-emit-module-path"
duplicate_flags "${actual_stdout}")
if(duplicate_flags)
string(APPEND RunCMake_TEST_FAILED
"Found command with duplicate -emit-module-path flags.\n")
endif()