[Cmake-commits] [cmake-commits] king committed CTestUpdateCommon.cmake 1.3 1.4
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Feb 23 16:54:56 EST 2009
Update of /cvsroot/CMake/CMake/Tests
In directory public:/mounts/ram/cvs-serv24595/Tests
Modified Files:
CTestUpdateCommon.cmake
Log Message:
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.
Index: CTestUpdateCommon.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CTestUpdateCommon.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** CTestUpdateCommon.cmake 23 Feb 2009 20:59:07 -0000 1.3
--- CTestUpdateCommon.cmake 23 Feb 2009 21:54:53 -0000 1.4
***************
*** 38,42 ****
set(MISSING)
foreach(f ${ARGN})
! if(NOT "${UPDATE_XML_ENTRIES}" MATCHES "<FullName>${f}</FullName>")
list(APPEND MISSING ${f})
endif()
--- 38,44 ----
set(MISSING)
foreach(f ${ARGN})
! string(REPLACE "/" "[/\\\\]" regex "${f}")
! string(REPLACE "." "\\." regex "${regex}")
! if(NOT "${UPDATE_XML_ENTRIES}" MATCHES "<FullName>${regex}</FullName>")
list(APPEND MISSING ${f})
endif()
More information about the Cmake-commits
mailing list