summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-10-06 15:04:06 (GMT)
committerBrad King <brad.king@kitware.com>2008-10-06 15:04:06 (GMT)
commit934c832cba0ede1d279e0ce3e05e424308a92541 (patch)
tree0e1b929f2a0213f467c2a4eef9d9aa5224872b6d
parent1704afa08da4a7ad4bd048ef68ede9c5a354da22 (diff)
downloadCMake-934c832cba0ede1d279e0ce3e05e424308a92541.zip
CMake-934c832cba0ede1d279e0ce3e05e424308a92541.tar.gz
CMake-934c832cba0ede1d279e0ce3e05e424308a92541.tar.bz2
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.
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx6
1 files 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<std::string> no_depends;