diff --git a/Tests/CTestUpdateCommon.cmake b/Tests/CTestUpdateCommon.cmake index 6c2a123093..7b670ae1e7 100644 --- a/Tests/CTestUpdateCommon.cmake +++ b/Tests/CTestUpdateCommon.cmake @@ -37,7 +37,9 @@ function(check_updates build) # Verify that expected entries exist set(MISSING) foreach(f ${ARGN}) - if(NOT "${UPDATE_XML_ENTRIES}" MATCHES "${f}") + string(REPLACE "/" "[/\\\\]" regex "${f}") + string(REPLACE "." "\\." regex "${regex}") + if(NOT "${UPDATE_XML_ENTRIES}" MATCHES "${regex}") list(APPEND MISSING ${f}) endif() endforeach(f)