diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index 8a1e38bc94..9ff6d70d4f 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 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 de6e6fa9bd..d51d548988 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; };