summaryrefslogtreecommitdiff
path: root/Source/CPack/cmCPackDebGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-08-31 09:14:43 -0400
committerBrad King <brad.king@kitware.com>2007-08-31 09:14:43 -0400
commit20455c699bab663148d9e7932eb1faf722473d29 (patch)
tree8bce36cbc42bf554ad70392bdf986ddaf6827806 /Source/CPack/cmCPackDebGenerator.cxx
parent54a470dd0372cfaec20534c4b12735b5dddcaff9 (diff)
downloadcmake-20455c699bab663148d9e7932eb1faf722473d29.tar.gz
BUG: Another space-in-path fix.
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackDebGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index fb6f8146c7..c77809e1ed 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -105,8 +105,10 @@ int cmCPackDebGenerator::CompressFiles(const char* outFileName,
out << std::endl;
}
- std::string cmd = cmakeExecutable;
- cmd += " -E tar cfz data.tar.gz ./usr";
+ std::string cmd;
+ cmd = "\"";
+ cmd += cmakeExecutable;
+ cmd += "\" -E tar cfz data.tar.gz ./usr";
std::string output;
int retVal = -1;
int res = cmSystemTools::RunSingleCommand(cmd.c_str(), &output,