[Cmake-commits] [cmake-commits] king committed System.c 1.13 1.14

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Dec 18 13:37:00 EST 2008


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv12824/Source/kwsys

Modified Files:
	System.c 
Log Message:
BUG: Fix windows command line escape for empty arg

On Windows the KWSys System package generates escapes for command-line
arguments.  This fix enables quoting of the empty string as an argument.
This also adds a test to pass an empty argument to a custom command.


Index: System.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/System.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C 2 -d -r1.13 -r1.14
*** System.c	30 Apr 2008 19:58:45 -0000	1.13
--- System.c	18 Dec 2008 18:36:58 -0000	1.14
***************
*** 171,174 ****
--- 171,180 ----
                                                    int flags)
  {
+   /* The empty string needs quotes.  */
+   if(!*in)
+     {
+     return 1;
+     }
+ 
    /* Scan the string for characters that require quoting.  */
    {



More information about the Cmake-commits mailing list