summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackDebGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-08-31 13:14:43 (GMT)
committerBrad King <brad.king@kitware.com>2007-08-31 13:14:43 (GMT)
commit20455c699bab663148d9e7932eb1faf722473d29 (patch)
tree8bce36cbc42bf554ad70392bdf986ddaf6827806 /Source/CPack/cmCPackDebGenerator.cxx
parent54a470dd0372cfaec20534c4b12735b5dddcaff9 (diff)
downloadCMake-20455c699bab663148d9e7932eb1faf722473d29.zip
CMake-20455c699bab663148d9e7932eb1faf722473d29.tar.gz
CMake-20455c699bab663148d9e7932eb1faf722473d29.tar.bz2
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 fb6f814..c77809e 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,