From 20455c699bab663148d9e7932eb1faf722473d29 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 31 Aug 2007 09:14:43 -0400 Subject: BUG: Another space-in-path fix. --- Source/CPack/cmCPackDebGenerator.cxx | 6 ++++-- 1 file 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, -- cgit v0.12