Merge topic 'fix-LINK_LIBRARIES-population'
d7f1520 Don't wrap all targets in LINK_LIBRARIES in a TARGET_NAME genex.
This commit is contained in:
commit
7a336d2e31
@ -2279,8 +2279,9 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf,
|
|||||||
cmTarget *tgt = this->Makefile->FindTargetToUse(lib);
|
cmTarget *tgt = this->Makefile->FindTargetToUse(lib);
|
||||||
const bool isNonImportedTarget = tgt && !tgt->IsImported();
|
const bool isNonImportedTarget = tgt && !tgt->IsImported();
|
||||||
|
|
||||||
std::string libName = isNonImportedTarget ? targetNameGenex(lib)
|
const std::string libName = (isNonImportedTarget && llt != GENERAL)
|
||||||
: std::string(lib);
|
? targetNameGenex(lib)
|
||||||
|
: std::string(lib);
|
||||||
this->AppendProperty("LINK_LIBRARIES",
|
this->AppendProperty("LINK_LIBRARIES",
|
||||||
this->GetDebugGeneratorExpressions(libName,
|
this->GetDebugGeneratorExpressions(libName,
|
||||||
llt).c_str());
|
llt).c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user