diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-18 22:41:14 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-20 22:37:01 (GMT) |
commit | 1df8bd3ab0f6621b90a8801c1d10cfc94c74ff96 (patch) | |
tree | 394e557af6010a81c4c8ace939a66a2bb664a483 /Source/cmGlobalGenerator.cxx | |
parent | 83703bda7d1017e1f75ec1b92d672d5ef17194d5 (diff) | |
download | CMake-1df8bd3ab0f6621b90a8801c1d10cfc94c74ff96.zip CMake-1df8bd3ab0f6621b90a8801c1d10cfc94c74ff96.tar.gz CMake-1df8bd3ab0f6621b90a8801c1d10cfc94c74ff96.tar.bz2 |
cmGlobalGenerator: Port IsRootOnlyTarget to cmGeneratorTarget.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 1142ddd..08ad2ef 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -2704,13 +2704,13 @@ void cmGlobalGenerator::GetTargetSets(TargetDependSet& projectTargets, for (cmTargets::iterator l = tgts.begin(); l != tgts.end(); ++l) { cmTarget* target = &l->second; - if(this->IsRootOnlyTarget(target) && + cmGeneratorTarget* gt = this->GetGeneratorTarget(target); + if(this->IsRootOnlyTarget(gt) && target->GetMakefile() != root->GetMakefile()) { continue; } // put the target in the set of original targets - cmGeneratorTarget* gt = this->GetGeneratorTarget(target); originalTargets.insert(gt); // Get the set of targets that depend on target this->AddTargetDepends(gt, projectTargets); @@ -2719,7 +2719,7 @@ void cmGlobalGenerator::GetTargetSets(TargetDependSet& projectTargets, } //---------------------------------------------------------------------------- -bool cmGlobalGenerator::IsRootOnlyTarget(cmTarget* target) const +bool cmGlobalGenerator::IsRootOnlyTarget(cmGeneratorTarget* target) const { return (target->GetType() == cmState::GLOBAL_TARGET || target->GetName() == this->GetAllTargetName()); |