diff options
author | Brad King <brad.king@kitware.com> | 2007-05-17 18:32:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-17 18:32:14 (GMT) |
commit | 6f9575690a50578174d86dcfbf557edb1056b3dd (patch) | |
tree | c5e74da44832036bde5c880306616ce3d786972b | |
parent | ad0df37f62ef0f3141fca758af824191faf11095 (diff) | |
download | CMake-6f9575690a50578174d86dcfbf557edb1056b3dd.zip CMake-6f9575690a50578174d86dcfbf557edb1056b3dd.tar.gz CMake-6f9575690a50578174d86dcfbf557edb1056b3dd.tar.bz2 |
ENH: Add testing of * and / character arguments except on MinGW.
-rw-r--r-- | Tests/CustomCommand/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 86b7c5e..a1c00ce 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -305,11 +305,14 @@ SET(CHECK_ARGS "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}") |