summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-10-28 20:26:00 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-10-28 20:26:00 (GMT)
commitb79c2f5a4c0e1a36ccffa751046b3e0a16c892d1 (patch)
tree72d7069241dda98ae438dd5f3acb2a9ae5690b4b /Source
parent77afae681aaf4cfab6bb3e72836c66760ce0dade (diff)
downloadCMake-b79c2f5a4c0e1a36ccffa751046b3e0a16c892d1.zip
CMake-b79c2f5a4c0e1a36ccffa751046b3e0a16c892d1.tar.gz
CMake-b79c2f5a4c0e1a36ccffa751046b3e0a16c892d1.tar.bz2
ENH: Command should also be quoted
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 06370be..11561e8 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -672,11 +672,14 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
else if (args[1] == "chdir" && args.size() >= 4)
{
std::string directory = args[2];
- std::string command = args[3];
+ std::string command = "\"";
+ command += args[3];
+ command += "\"";
for (std::string::size_type cc = 4; cc < args.size(); cc ++)
{
- command += " ";
+ command += " \"";
command += args[cc];
+ command += "\"";
}
int retval = 0;