BUG: Another space-in-path fix.

This commit is contained in:
Brad King 2007-08-31 09:14:43 -04:00
parent 54a470dd03
commit 20455c699b

View File

@ -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,