diff options
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 6 |
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, |