diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-29 20:32:20 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-29 20:32:20 (GMT) |
commit | e47fbcb9a83b732da5107e1ea2f30b144cd04387 (patch) | |
tree | 98aa72b2398ece22e0c5ac0db913e4c6cbaf66eb /Source/CPack/cmCPackDebGenerator.cxx | |
parent | 483a147136c980676011d4628fd13a399907f8d4 (diff) | |
download | CMake-e47fbcb9a83b732da5107e1ea2f30b144cd04387.zip CMake-e47fbcb9a83b732da5107e1ea2f30b144cd04387.tar.gz CMake-e47fbcb9a83b732da5107e1ea2f30b144cd04387.tar.bz2 |
BUG: work if there are spaces in the path to cmake
Alex
Diffstat (limited to 'Source/CPack/cmCPackDebGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index c8b6d4e..fb6f814 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -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); |