diff options
author | Brad King <brad.king@kitware.com> | 2009-02-23 21:54:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-23 21:54:53 (GMT) |
commit | ac89c8004b62cec540ffe1e7ea0f75c5af2328a4 (patch) | |
tree | 67a94cf95676a02682b73fe1b09d27f0947880cf /Tests/CTestUpdateCommon.cmake | |
parent | a6c07844895332587837b8c18737146a16be7559 (diff) | |
download | CMake-ac89c8004b62cec540ffe1e7ea0f75c5af2328a4.zip CMake-ac89c8004b62cec540ffe1e7ea0f75c5af2328a4.tar.gz CMake-ac89c8004b62cec540ffe1e7ea0f75c5af2328a4.tar.bz2 |
BUG: Fix CTest.UpdateCVS/SVN tests for win slashes
This fixes the tests to allow windows slashes in reported file names in
the generated Update.xml file.
Diffstat (limited to 'Tests/CTestUpdateCommon.cmake')
-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) |