summaryrefslogtreecommitdiff
path: root/Source/kwsys/System.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-30 10:02:08 -0400
committerBrad King <brad.king@kitware.com>2008-04-30 10:02:08 -0400
commit47bfda0acb3201476239ce8e08daf9aab656ced0 (patch)
treeed50bd42c15215b00d98ff3230eee6f8d667f562 /Source/kwsys/System.c
parent893d0fe0d1acff9c8bca01bfd98583efd3c451db (diff)
downloadcmake-47bfda0acb3201476239ce8e08daf9aab656ced0.tar.gz
BUG: Fix kwsysSystem_Shell_GetArgumentForWindows to reset the windows trailing backslash count to zero when a make variable reference is encountered.
Diffstat (limited to 'Source/kwsys/System.c')
-rw-r--r--Source/kwsys/System.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/System.c b/Source/kwsys/System.c
index de85c3a5d2..3908c05e7e 100644
--- a/Source/kwsys/System.c
+++ b/Source/kwsys/System.c
@@ -380,6 +380,10 @@ static char* kwsysSystem_Shell__GetArgument(const char* in, char* out,
*out++ = *c++;
}
+ /* The make variable reference eliminates any escaping needed
+ for preceding backslashes. */
+ windows_backslashes = 0;
+
/* Stop if we have reached the end of the string. */
if(!*c)
{