mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-23 00:48:55 +08:00
cmComputeLinkDepends: Remove redundant member
This commit is contained in:
@@ -642,8 +642,7 @@ cmComputeLinkDepends::cmComputeLinkDepends(const cmGeneratorTarget* target,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The configuration being linked.
|
// The configuration being linked.
|
||||||
this->HasConfig = !config.empty();
|
this->Config = config;
|
||||||
this->Config = (this->HasConfig) ? config : std::string();
|
|
||||||
std::vector<std::string> debugConfigs =
|
std::vector<std::string> debugConfigs =
|
||||||
this->Makefile->GetCMakeInstance()->GetDebugConfigs();
|
this->Makefile->GetCMakeInstance()->GetDebugConfigs();
|
||||||
this->LinkType = CMP0003_ComputeLinkType(this->Config, debugConfigs);
|
this->LinkType = CMP0003_ComputeLinkType(this->Config, debugConfigs);
|
||||||
@@ -706,7 +705,7 @@ cmComputeLinkDepends::Compute()
|
|||||||
"---------------------------------------\n");
|
"---------------------------------------\n");
|
||||||
fprintf(stderr, "Link dependency analysis for target %s, config %s\n",
|
fprintf(stderr, "Link dependency analysis for target %s, config %s\n",
|
||||||
this->Target->GetName().c_str(),
|
this->Target->GetName().c_str(),
|
||||||
this->HasConfig ? this->Config.c_str() : "noconfig");
|
this->Config.empty() ? "noconfig" : this->Config.c_str());
|
||||||
this->DisplayConstraintGraph();
|
this->DisplayConstraintGraph();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -208,7 +208,6 @@ private:
|
|||||||
|
|
||||||
size_t ComponentOrderId;
|
size_t ComponentOrderId;
|
||||||
cmTargetLinkLibraryType LinkType;
|
cmTargetLinkLibraryType LinkType;
|
||||||
bool HasConfig;
|
|
||||||
bool DebugMode;
|
bool DebugMode;
|
||||||
bool OldLinkDirMode;
|
bool OldLinkDirMode;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user