[cmake-commits] clinton committed FindQt4.cmake 1.93 1.94

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Feb 14 01:11:22 EST 2008


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv16100

Modified Files:
	FindQt4.cmake 
Log Message:

BUG:  Fix error when paths have + in them. (special regex characters)



Index: FindQt4.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindQt4.cmake,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- FindQt4.cmake	13 Feb 2008 19:35:10 -0000	1.93
+++ FindQt4.cmake	14 Feb 2008 06:11:20 -0000	1.94
@@ -903,12 +903,7 @@
   
   # macro used to create the names of output files preserving relative dirs
   MACRO (QT4_MAKE_OUTPUT_FILE infile prefix ext outfile )
-    STRING(REGEX MATCH "${CMAKE_CURRENT_BINARY_DIR}" _match ${infile})
-    IF(_match)
-      FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_BINARY_DIR} ${infile})
-    ELSE(_match)
-      FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile})
-    ENDIF(_match)
+    FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile})
     SET(_outfile "${CMAKE_CURRENT_BINARY_DIR}/${rel}")
     GET_FILENAME_COMPONENT(outpath ${_outfile} PATH)
     GET_FILENAME_COMPONENT(_outfile ${_outfile} NAME_WE)



More information about the Cmake-commits mailing list