[cmake-commits] king committed CMakeLists.txt 1.31 1.32
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu May 17 14:32:16 EDT 2007
Update of /cvsroot/CMake/CMake/Tests/CustomCommand
In directory public:/mounts/ram/cvs-serv6068
Modified Files:
CMakeLists.txt
Log Message:
ENH: Add testing of * and / character arguments except on MinGW.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CustomCommand/CMakeLists.txt,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- CMakeLists.txt 17 May 2007 18:03:31 -0000 1.31
+++ CMakeLists.txt 17 May 2007 18:32:14 -0000 1.32
@@ -305,11 +305,14 @@
"one#pound with space"
~ ` ! @ \# $ % ^ & _ - + = | : "\;" \" ' , . ? "(" ")" { } []
# < > << >> &> 2>&1 1>&2
-# * # MSys make always expands the wildcard
-# / # MSys make converts a leading slash to the mingw home directory
# \\ # Need to test last to avoid ; escape in list.
# # Make tools need help when this is the last argument.
)
+IF(NOT MINGW)
+ # * # MinGW programs on windows always expands the wildcard!
+ # / # MSys make converts a leading slash to the mingw home directory
+ LIST(APPEND CHECK_ARGS * /)
+ENDIF(NOT MINGW)
FOREACH(arg ${CHECK_ARGS})
SET(ARG "${arg}")
STRING(REGEX REPLACE "\\\\" "\\\\\\\\" ARG "${ARG}")
More information about the Cmake-commits
mailing list