blob: f708971068b927317b23562837e64378330a1283 [file] [edit]
file(READ "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/impl-Release.ninja" impl_release)
string(REPLACE "\\" "/" impl_release "${impl_release}")
set(top "cmake_custom_command_order_depends_target_top\\$:genex\\$:Debug\\$:Release")
set(mid "cmake_custom_command_order_depends_target_mid\\$:genex\\$:Debug\\$:Release")
foreach(line IN ITEMS
"Debug/command\\.h[^\n]*: CUSTOM_COMMAND \\|\\| ${top}\n"
"build ${top}: phony \\|\\| [^\n]*${mid}[^\n]*\n"
"build ${mid}: phony \\|\\| Debug/[^\n]*dep1[^\n]* Debug/[^\n]*dep2[^\n]*\n"
)
if(NOT impl_release MATCHES "${line}")
string(APPEND RunCMake_TEST_FAILED "impl-Release.ninja does not match:\n ${line}\n")
endif()
endforeach()