diff options
author | Brad King <brad.king@kitware.com> | 2006-06-01 18:09:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-06-01 18:09:21 (GMT) |
commit | 791706a52f68f8750026682a4a5ae4f49b62df68 (patch) | |
tree | 0b55bf9ec99d8b488e3f05381cf7ff2e8b03df31 /Source/cmGlobalUnixMakefileGenerator3.cxx | |
parent | 09f2be12b803ca3d6955b89e90f816928154aa1b (diff) | |
download | CMake-791706a52f68f8750026682a4a5ae4f49b62df68.zip CMake-791706a52f68f8750026682a4a5ae4f49b62df68.tar.gz CMake-791706a52f68f8750026682a4a5ae4f49b62df68.tar.bz2 |
BUG: Added /fast targets in subdirectory makefiles. Removed bogus INSTALL_*/fast targets. Also fixed preinstall/fast target.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index b7f6797..98caec2 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -680,17 +680,17 @@ cmGlobalUnixMakefileGenerator3 cmTargets& targets = lg->GetMakefile()->GetTargets(); for(cmTargets::iterator t = targets.begin(); t != targets.end(); ++t) { - if((t->second.GetType() == cmTarget::EXECUTABLE) || - (t->second.GetType() == cmTarget::STATIC_LIBRARY) || - (t->second.GetType() == cmTarget::SHARED_LIBRARY) || - (t->second.GetType() == cmTarget::MODULE_LIBRARY) || - (t->second.GetType() == cmTarget::UTILITY)) + // Don't emit the same rule twice (e.g. two targets with the same + // simple name) + if(t->second.GetName() && + strlen(t->second.GetName()) && + emitted.insert(t->second.GetName()).second) { - // Don't emit the same rule twice (e.g. two targets with the same - // simple name) - if(t->second.GetName() && - strlen(t->second.GetName()) && - emitted.insert(t->second.GetName()).second) + if((t->second.GetType() == cmTarget::EXECUTABLE) || + (t->second.GetType() == cmTarget::STATIC_LIBRARY) || + (t->second.GetType() == cmTarget::SHARED_LIBRARY) || + (t->second.GetType() == cmTarget::MODULE_LIBRARY) || + (t->second.GetType() == cmTarget::UTILITY)) { // Add a rule to build the target by name. lg->WriteDivider(ruleFileStream); @@ -762,14 +762,10 @@ cmGlobalUnixMakefileGenerator3 lg->WriteMakeRule(ruleFileStream, "fast build rule for target.", localName.c_str(), depends, commands, true); } - } - else - { - if(t->second.GetName() && - strlen(t->second.GetName()) && - emitted.insert(t->second.GetName()).second) + else if(t->second.GetType() == cmTarget::GLOBAL_TARGET) { - // Add a fast rule to build the target + // Provide a fast target for the global targets that just + // forwards to the real target so at least it will work. depends.clear(); commands.clear(); std::string localName = t->second.GetName(); |