Browse Source

BUG: Fix for spaces in path

Andy Cedilnik 22 years ago
parent
commit
6eed8b55dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmLocalGenerator.cxx

+ 2 - 2
Source/cmLocalGenerator.cxx

@@ -231,8 +231,8 @@ void cmLocalGenerator::AddInstallRule(std::ostream& fout, const char* dest, int
     }
   fout 
     << "MESSAGE(STATUS \"Install " << stype << ": " << sfiles.c_str() << "\")\n" 
-    << "FILE(INSTALL DESTINATION " << destination.c_str() 
-    << " TYPE " << stype.c_str() << " FILES " << sfiles.c_str() << ")\n";
+    << "FILE(INSTALL DESTINATION \"" << destination.c_str() 
+    << "\" TYPE " << stype.c_str() << " FILES \"" << sfiles.c_str() << "\")\n";
 }
 
 const char* cmLocalGenerator::GetSafeDefinition(const char* def)