BUG: work if there are spaces in the path to cmake

Alex
This commit is contained in:
Alexander Neundorf 2007-08-29 16:32:20 -04:00
parent 483a147136
commit e47fbcb9a8
1 changed files with 6 additions and 4 deletions

View File

@ -138,8 +138,9 @@ int cmCPackDebGenerator::CompressFiles(const char* outFileName,
topLevelWithTrailingSlash += '/';
for ( fileIt = files.begin(); fileIt != files.end(); ++ fileIt )
{
cmd = cmakeExecutable;
cmd += " -E md5sum \"";
cmd = "\"";
cmd += cmakeExecutable;
cmd += "\" -E md5sum \"";
cmd += *fileIt;
cmd += "\"";
//std::string output;
@ -158,8 +159,9 @@ int cmCPackDebGenerator::CompressFiles(const char* outFileName,
}
cmd = cmakeExecutable;
cmd += " -E tar cfz control.tar.gz ./control ./md5sums";
cmd = "\"";
cmd += cmakeExecutable;
cmd += "\" -E tar cfz control.tar.gz ./control ./md5sums";
res = cmSystemTools::RunSingleCommand(cmd.c_str(), &output,
&retVal, toplevel, this->GeneratorVerbose, 0);