Browse Source

BUG: Fix convenience rule working directory

We generate convenience rules to build object files, preprocessed
outputs, and assembly outputs of source files individually with make
rules.  This removes a redundant working directory change when more than
one target builds the same source file.
Brad King 17 years ago
parent
commit
934c832cba
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 3 - 3
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -358,10 +358,10 @@ cmLocalUnixMakefileGenerator3
     commands.push_back(
       this->GetRecursiveMakeCall(tgtMakefileName.c_str(), targetName.c_str())
       );
-    this->CreateCDCommand(commands,
-                          this->Makefile->GetHomeOutputDirectory(),
-                          this->Makefile->GetStartOutputDirectory());
     }
+  this->CreateCDCommand(commands,
+                        this->Makefile->GetHomeOutputDirectory(),
+                        this->Makefile->GetStartOutputDirectory());
 
   // Write the rule to the makefile.
   std::vector<std::string> no_depends;