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.
This commit is contained in:
Brad King 2008-10-06 11:04:06 -04:00
parent 1704afa08d
commit 934c832cba

View File

@ -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;