Browse Source

BUG: fix for spaces in path for nmake

Ken Martin 18 years ago
parent
commit
314f5f60a0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Source/cmLocalUnixMakefileGenerator3.cxx
  2. 1 1
      Source/cmMakefileTargetGenerator.cxx

+ 1 - 1
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -827,7 +827,7 @@ cmLocalUnixMakefileGenerator3::GetRelativeTargetDirectory(cmTarget& target)
 {
   std::string dir = this->HomeRelativeOutputPath;
   dir += this->GetTargetDirectory(target);
-  return this->Convert(dir.c_str(),NONE,MAKEFILE);
+  return this->Convert(dir.c_str(),NONE,UNCHANGED);
 }
 
 

+ 1 - 1
Source/cmMakefileTargetGenerator.cxx

@@ -1077,7 +1077,7 @@ void cmMakefileTargetGenerator::WriteTargetDriverRule(const char* main_output,
   buildTargetRuleName += relink?"/preinstall":"/build";
   buildTargetRuleName = this->Convert(buildTargetRuleName.c_str(),
                                       cmLocalGenerator::HOME_OUTPUT,
-                                      cmLocalGenerator::MAKEFILE);
+                                      cmLocalGenerator::UNCHANGED);
 
   // Build the list of target outputs to drive.
   std::vector<std::string> depends;