summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-30 14:02:08 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-30 14:02:08 (GMT)
commit47bfda0acb3201476239ce8e08daf9aab656ced0 (patch)
treeed50bd42c15215b00d98ff3230eee6f8d667f562 /Source
parent893d0fe0d1acff9c8bca01bfd98583efd3c451db (diff)
downloadCMake-47bfda0acb3201476239ce8e08daf9aab656ced0.zip
CMake-47bfda0acb3201476239ce8e08daf9aab656ced0.tar.gz
CMake-47bfda0acb3201476239ce8e08daf9aab656ced0.tar.bz2
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')
-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 de85c3a..3908c05 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)
{