Explorar o código

BUG: Support paths with spaces

Andy Cedilnik %!s(int64=21) %!d(string=hai) anos
pai
achega
4fbf360a26
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Source/cmLocalGenerator.cxx

+ 2 - 2
Source/cmLocalGenerator.cxx

@@ -134,7 +134,7 @@ void cmLocalGenerator::GenerateInstallRules()
       const char* postinstall = l->second.GetProperty("POST_INSTALL_SCRIPT");
       if ( preinstall )
         {
-        fout << "INCLUDE(" << preinstall << ")" << std::endl;
+        fout << "INCLUDE(\"" << preinstall << "\")" << std::endl;
         }
 
       std::string fname;
@@ -235,7 +235,7 @@ void cmLocalGenerator::GenerateInstallRules()
         }
       if ( postinstall )
         {
-        fout << "INCLUDE(" << postinstall << ")" << std::endl;
+        fout << "INCLUDE(\"" << postinstall << "\")" << std::endl;
         }
       }
     }