From 934c832cba0ede1d279e0ce3e05e424308a92541 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 6 Oct 2008 11:04:06 -0400 Subject: 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. --- Source/cmLocalUnixMakefileGenerator3.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 38ceba6..b27855f 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/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 no_depends; -- cgit v0.12