summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-29 21:35:43 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-29 21:35:43 (GMT)
commita4b04375d2b31ab720ac03e338521683b29a38cb (patch)
treec23745ff70fc1d9defd8c8fbca8a3748a76ba7f5
parent01efac63e207e99c1543bff4ff2dacbd069608cb (diff)
downloadCMake-a4b04375d2b31ab720ac03e338521683b29a38cb.zip
CMake-a4b04375d2b31ab720ac03e338521683b29a38cb.tar.gz
CMake-a4b04375d2b31ab720ac03e338521683b29a38cb.tar.bz2
When cd-jing into directory, if directory has space, it should put quotes around. I guess we could just put quotes around all the time
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 72c9015..6f89f94 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1470,9 +1470,9 @@ bool RunCommandViaPopen(const char* command,
std::string commandInDir;
if(dir)
{
- commandInDir = "cd ";
+ commandInDir = "cd \"";
commandInDir += dir;
- commandInDir += " && ";
+ commandInDir += "\" && ";
commandInDir += command;
}
else