diff --git a/scripts/cmake/vcpkg_execute_build_process.cmake b/scripts/cmake/vcpkg_execute_build_process.cmake index 153ce6be104a55..60fd5b587a650f 100644 --- a/scripts/cmake/vcpkg_execute_build_process.cmake +++ b/scripts/cmake/vcpkg_execute_build_process.cmake @@ -86,7 +86,7 @@ function(vcpkg_execute_build_process) RESULT_VARIABLE error_code ) endif() - elseif(all_contents MATCHES "mt : general error c101008d: ") + elseif(all_contents MATCHES "mt(\\.exe)? : general error c101008d: ") # Antivirus workaround - occasionally files are locked and cause mt.exe to fail message(STATUS "mt.exe has failed. This may be the result of anti-virus. Disabling anti-virus on the buildtree folder may improve build speed") foreach(iteration RANGE 1 3)