1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-21 23:00:50 +08:00

cmComputeLinkDepends: Remove redundant member

This commit is contained in:
Brad King
2024-09-18 14:03:12 -04:00
parent dccdd030cd
commit 8db69c767b
2 changed files with 2 additions and 4 deletions

View File

@@ -642,8 +642,7 @@ cmComputeLinkDepends::cmComputeLinkDepends(const cmGeneratorTarget* target,
}
// The configuration being linked.
this->HasConfig = !config.empty();
this->Config = (this->HasConfig) ? config : std::string();
this->Config = config;
std::vector<std::string> debugConfigs =
this->Makefile->GetCMakeInstance()->GetDebugConfigs();
this->LinkType = CMP0003_ComputeLinkType(this->Config, debugConfigs);
@@ -706,7 +705,7 @@ cmComputeLinkDepends::Compute()
"---------------------------------------\n");
fprintf(stderr, "Link dependency analysis for target %s, config %s\n",
this->Target->GetName().c_str(),
this->HasConfig ? this->Config.c_str() : "noconfig");
this->Config.empty() ? "noconfig" : this->Config.c_str());
this->DisplayConstraintGraph();
}

View File

@@ -208,7 +208,6 @@ private:
size_t ComponentOrderId;
cmTargetLinkLibraryType LinkType;
bool HasConfig;
bool DebugMode;
bool OldLinkDirMode;
};