Tests/RunCMake/ctest_build: Fix check script for i18n characters in path

This commit is contained in:
Brad King
2024-11-27 15:07:41 -05:00
parent e0fd630e93
commit 7b5d692165

View File

@@ -1,6 +1,6 @@
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>")
file(STRINGS "${build_xml_file}" build_cmd LIMIT_COUNT 1 REGEX "<BuildCommand>" ENCODING UTF-8)
if(NOT build_cmd MATCHES [[ --parallel "1"]])
set(RunCMake_TEST_FAILED
"Build.xml does not have expected build command with --parallel flag"