summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-18 18:03:12 (GMT)
committerBrad King <brad.king@kitware.com>2024-09-20 17:45:45 (GMT)
commit8db69c767bb2cf85abc20333be04ae758f11c89d (patch)
treec151909c509acc1127347956ec1f9ce92f2e167a /Source
parentdccdd030cd6b3e57f5f5e1e810c38cc7bc46c4eb (diff)
downloadCMake-8db69c767bb2cf85abc20333be04ae758f11c89d.zip
CMake-8db69c767bb2cf85abc20333be04ae758f11c89d.tar.gz
CMake-8db69c767bb2cf85abc20333be04ae758f11c89d.tar.bz2
cmComputeLinkDepends: Remove redundant member
Diffstat (limited to 'Source')
-rw-r--r--Source/cmComputeLinkDepends.cxx5
-rw-r--r--Source/cmComputeLinkDepends.h1
2 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index 8a1e38b..9ff6d70 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/Source/cmComputeLinkDepends.cxx
@@ -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();
}
diff --git a/Source/cmComputeLinkDepends.h b/Source/cmComputeLinkDepends.h
index de6e6fa..d51d548 100644
--- a/Source/cmComputeLinkDepends.h
+++ b/Source/cmComputeLinkDepends.h
@@ -208,7 +208,6 @@ private:
size_t ComponentOrderId;
cmTargetLinkLibraryType LinkType;
- bool HasConfig;
bool DebugMode;
bool OldLinkDirMode;
};