mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05:00
cmGlobalVisualStudioGenerator: remove redundant variables
This commit is contained in:
@@ -203,9 +203,7 @@ void cmGlobalVisualStudioGenerator::AddExtraIDETargets()
|
|||||||
|
|
||||||
// Now make all targets depend on the ALL_BUILD target
|
// Now make all targets depend on the ALL_BUILD target
|
||||||
for (cmLocalGenerator const* i : gen) {
|
for (cmLocalGenerator const* i : gen) {
|
||||||
std::vector<cmGeneratorTarget*> const& targets =
|
for (cmGeneratorTarget* tgt : i->GetGeneratorTargets()) {
|
||||||
i->GetGeneratorTargets();
|
|
||||||
for (cmGeneratorTarget* tgt : targets) {
|
|
||||||
if (tgt->GetType() == cmStateEnums::GLOBAL_TARGET ||
|
if (tgt->GetType() == cmStateEnums::GLOBAL_TARGET ||
|
||||||
tgt->IsImported()) {
|
tgt->IsImported()) {
|
||||||
continue;
|
continue;
|
||||||
@@ -392,11 +390,8 @@ bool cmGlobalVisualStudioGenerator::ComputeTargetDepends()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (auto const& it : this->ProjectMap) {
|
for (auto const& it : this->ProjectMap) {
|
||||||
std::vector<cmLocalGenerator*> const& gen = it.second;
|
for (const cmLocalGenerator* i : it.second) {
|
||||||
for (const cmLocalGenerator* i : gen) {
|
for (cmGeneratorTarget* ti : i->GetGeneratorTargets()) {
|
||||||
std::vector<cmGeneratorTarget*> const& targets =
|
|
||||||
i->GetGeneratorTargets();
|
|
||||||
for (cmGeneratorTarget* ti : targets) {
|
|
||||||
this->ComputeVSTargetDepends(ti);
|
this->ComputeVSTargetDepends(ti);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -448,8 +443,7 @@ void cmGlobalVisualStudioGenerator::ComputeVSTargetDepends(
|
|||||||
std::set<cmGeneratorTarget const*> linkDepends;
|
std::set<cmGeneratorTarget const*> linkDepends;
|
||||||
if (target->GetType() != cmStateEnums::STATIC_LIBRARY) {
|
if (target->GetType() != cmStateEnums::STATIC_LIBRARY) {
|
||||||
for (cmTargetDepend const& di : depends) {
|
for (cmTargetDepend const& di : depends) {
|
||||||
cmTargetDepend dep = di;
|
if (di.IsLink()) {
|
||||||
if (dep.IsLink()) {
|
|
||||||
this->FollowLinkDepends(di, linkDepends);
|
this->FollowLinkDepends(di, linkDepends);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -458,8 +452,7 @@ void cmGlobalVisualStudioGenerator::ComputeVSTargetDepends(
|
|||||||
// Collect explicit util dependencies (add_dependencies).
|
// Collect explicit util dependencies (add_dependencies).
|
||||||
std::set<cmGeneratorTarget const*> utilDepends;
|
std::set<cmGeneratorTarget const*> utilDepends;
|
||||||
for (cmTargetDepend const& di : depends) {
|
for (cmTargetDepend const& di : depends) {
|
||||||
cmTargetDepend dep = di;
|
if (di.IsUtil()) {
|
||||||
if (dep.IsUtil()) {
|
|
||||||
this->FollowLinkDepends(di, utilDepends);
|
this->FollowLinkDepends(di, utilDepends);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user