diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-09 14:57:23 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-11-09 14:57:23 (GMT) |
commit | b0bc59f70988d169dd0c00ccecc19e42548fcd9f (patch) | |
tree | 8bdfad578d85761e0314e1cd4cc12fe96015adb0 /Source/cmGlobalGenerator.cxx | |
parent | 976424f8d3aec590364e935d5b61905c7c91db83 (diff) | |
download | CMake-b0bc59f70988d169dd0c00ccecc19e42548fcd9f.zip CMake-b0bc59f70988d169dd0c00ccecc19e42548fcd9f.tar.gz CMake-b0bc59f70988d169dd0c00ccecc19e42548fcd9f.tar.bz2 |
ENH: commit fix for putting everything in the build on vs
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index cd54591..130005f 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -591,6 +591,29 @@ void cmGlobalGenerator::ClearEnabledLanguages() this->LanguageEnabled.clear(); } +bool cmGlobalGenerator::IsDependedOn(const char* project, + cmTarget* targetIn) +{ + // Get all local gens for this project + std::vector<cmLocalGenerator*>* gens = &this->ProjectMap[project]; + // loop over local gens and get the targets for each one + for(unsigned int i = 0; i < gens->size(); ++i) + { + cmTargets& targets = (*gens)[i]->GetMakefile()->GetTargets(); + for (cmTargets::iterator l = targets.begin(); + l != targets.end(); l++) + { + cmTarget& target = l->second; + if(target.GetUtilities().find(targetIn->GetName()) != + target.GetUtilities().end()) + { + return true; + } + } + } + return false; +} + void cmGlobalGenerator::Configure() { // Delete any existing cmLocalGenerators |