summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-01-20 23:52:08 (GMT)
committerBrad King <brad.king@kitware.com>2003-01-20 23:52:08 (GMT)
commit594bc7f22bfb314af9dc16bf1700179077aec5d0 (patch)
tree276d4f8eb007b5952a4174125b4fe80b6b5ae991
parentc4fa5d1fdf8a8bdc03872f148b29432e8f55ae9a (diff)
downloadCMake-594bc7f22bfb314af9dc16bf1700179077aec5d0.zip
CMake-594bc7f22bfb314af9dc16bf1700179077aec5d0.tar.gz
CMake-594bc7f22bfb314af9dc16bf1700179077aec5d0.tar.bz2
BUG: Fixed directory creation for spaces in install path.
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 781064e..5e9f8e6 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -2060,14 +2060,14 @@ void cmLocalUnixMakefileGenerator::OutputInstallRules(std::ostream& fout)
if (l->second.GetInstallPath() != "")
{
// first make the directories for each target
- fout << "\t@if [ ! -d \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath() <<
- " ] ; then \\\n";
- fout << "\t echo \"Making directory \"$(DESTDIR)\"" << prefix
- << l->second.GetInstallPath() << " \"; \\\n";
- fout << "\t mkdir -p \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath()
- << "; \\\n";
- fout << "\t chmod 755 \"$(DESTDIR)\"" << prefix << l->second.GetInstallPath()
- << "; \\\n";
+ fout << "\t@if [ ! -d \"$(DESTDIR)" << prefix << l->second.GetInstallPath() <<
+ "\"] ; then \\\n";
+ fout << "\t echo \"Making directory \\\"$(DESTDIR)" << prefix
+ << l->second.GetInstallPath() << "\\\" \"; \\\n";
+ fout << "\t mkdir -p \"$(DESTDIR)" << prefix << l->second.GetInstallPath()
+ << "\"; \\\n";
+ fout << "\t chmod 755 \"$(DESTDIR)" << prefix << l->second.GetInstallPath()
+ << "\"; \\\n";
fout << "\t else true; \\\n";
fout << "\t fi\n";
std::string fname;