mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 15:10:20 -06:00
Merge topic 'ninja-comment-ComputeLinkCmd'
de7083f3 Ninja: Document why ComputeLinkCmd is structured the way it is.
This commit is contained in:
@@ -332,6 +332,9 @@ std::vector<std::string> cmNinjaNormalTargetGenerator::ComputeLinkCmd()
|
||||
std::vector<std::string> linkCmds;
|
||||
cmMakefile* mf = this->GetMakefile();
|
||||
{
|
||||
// If we have a rule variable prefer it. In the case of static libraries
|
||||
// this occurs when things like IPO is enabled, and we need to use the
|
||||
// CMAKE_<lang>_CREATE_STATIC_LIBRARY_IPO define instead.
|
||||
std::string linkCmdVar = this->GetGeneratorTarget()->GetCreateRuleVariable(
|
||||
this->TargetLinkLanguage, this->GetConfigName());
|
||||
const char* linkCmd = mf->GetDefinition(linkCmdVar);
|
||||
|
||||
Reference in New Issue
Block a user