diff options
author | Brad King <brad.king@kitware.com> | 2007-08-02 18:28:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-08-02 18:28:45 (GMT) |
commit | 8dc897b60ccc6c3a3d017df492317ad54f4653ca (patch) | |
tree | d773eed9e9015e94b2ecf74ac6fb8aef2b1c9381 /Source/cmGlobalUnixMakefileGenerator3.cxx | |
parent | 695424f6b7371c1980096a5b54cfaf6fdf7c9836 (diff) | |
download | CMake-8dc897b60ccc6c3a3d017df492317ad54f4653ca.zip CMake-8dc897b60ccc6c3a3d017df492317ad54f4653ca.tar.gz CMake-8dc897b60ccc6c3a3d017df492317ad54f4653ca.tar.bz2 |
BUG: Removing accidental commit.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 2dce017..6945b0d 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -731,7 +731,8 @@ cmGlobalUnixMakefileGenerator3 makefileName = localName; makefileName += "/build.make"; - bool needRequiresStep = this->NeedRequiresStep(t->second); + bool needRequiresStep = + this->NeedRequiresStep(lg,t->second.GetName()); lg->WriteDivider(ruleFileStream); ruleFileStream @@ -861,14 +862,11 @@ cmGlobalUnixMakefileGenerator3 lg->WriteMakeRule(ruleFileStream, "Pre-install relink rule for target.", localName.c_str(), depends, commands, true); - if(!exclude) - { - depends.clear(); - depends.push_back(localName); - commands.clear(); - lg->WriteMakeRule(ruleFileStream, "Prepare target for install.", - "preinstall", depends, commands, true); - } + depends.clear(); + depends.push_back(localName); + commands.clear(); + lg->WriteMakeRule(ruleFileStream, "Prepare target for install.", + "preinstall", depends, commands, true); } // add the clean rule @@ -1170,17 +1168,18 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule bool cmGlobalUnixMakefileGenerator3 -::NeedRequiresStep(cmTarget const& target) +::NeedRequiresStep(cmLocalUnixMakefileGenerator3 *lg,const char *name) { - std::set<cmStdString> languages; - target.GetLanguages(languages); - for(std::set<cmStdString>::const_iterator l = languages.begin(); - l != languages.end(); ++l) + std::map<cmStdString,cmLocalUnixMakefileGenerator3::IntegrityCheckSet>& + checkSet = lg->GetIntegrityCheckSet()[name]; + for(std::map<cmStdString, + cmLocalUnixMakefileGenerator3::IntegrityCheckSet>::const_iterator + l = checkSet.begin(); l != checkSet.end(); ++l) { - std::string var = "CMAKE_NEEDS_REQUIRES_STEP_"; - var += *l; - var += "_FLAG"; - if(target.GetMakefile()->GetDefinition(var.c_str())) + std::string name2 = "CMAKE_NEEDS_REQUIRES_STEP_"; + name2 += l->first; + name2 += "_FLAG"; + if(lg->GetMakefile()->GetDefinition(name2.c_str())) { return true; } |