[cmake-commits] king committed System.c 1.6 1.7
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed May 16 16:19:20 EDT 2007
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv6996
Modified Files:
System.c
Log Message:
BUG: Shell escaping needs to write % as %% for VS IDE.
Index: System.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/System.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- System.c 25 Oct 2006 15:23:04 -0000 1.6
+++ System.c 16 May 2007 20:19:18 -0000 1.7
@@ -287,6 +287,15 @@
++size;
}
}
+ else if(*c == '%')
+ {
+ if(flags & kwsysSystem_Shell_Flag_VSIDE)
+ {
+ /* In a VS IDE a percent is written %% so we need one extra
+ characters. */
+ size += 1;
+ }
+ }
}
/* Check whether the argument needs surrounding quotes. */
@@ -432,6 +441,20 @@
*out++ = '#';
}
}
+ else if(*c == '%')
+ {
+ if(flags & kwsysSystem_Shell_Flag_VSIDE)
+ {
+ /* In a VS IDE a percent is written %%. */
+ *out++ = '%';
+ *out++ = '%';
+ }
+ else
+ {
+ /* Otherwise a percent is written just %. */
+ *out++ = '%';
+ }
+ }
else
{
/* Store this character. */
More information about the Cmake-commits
mailing list