ParallelLevel-check.cmake 414 B

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