You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/ctest_build/ParallelLevel-check.cmake

12 lines
414 B

file(GLOB build_xml_file "${RunCMake_TEST_BINARY_DIR}/Testing/*/Build.xml")
if(build_xml_file)
file(STRINGS "${build_xml_file}" build_cmd LIMIT_COUNT 1 REGEX "<BuildCommand>")
if(NOT build_cmd MATCHES [[ --parallel "1"]])
set(RunCMake_TEST_FAILED
"Build.xml does not have expected build command with --parallel flag"
)
endif()
else()
set(RunCMake_TEST_FAILED "Build.xml not found")
endif()