diff options
-rw-r--r-- | Tests/CTestUpdateCommon.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CTestUpdateCommon.cmake b/Tests/CTestUpdateCommon.cmake index 6c2a123..7b670ae 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 "<FullName>${f}</FullName>") + string(REPLACE "/" "[/\\\\]" regex "${f}") + string(REPLACE "." "\\." regex "${regex}") + if(NOT "${UPDATE_XML_ENTRIES}" MATCHES "<FullName>${regex}</FullName>") list(APPEND MISSING ${f}) endif() endforeach(f) |