ENH: make more specific in reject self linking
This commit is contained in:
parent
67c4e66845
commit
84dce824e5
@ -241,7 +241,8 @@ void cmOrderLinkDirectories::SetLinkInformation(const cmTarget& target,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Don't link the library against itself!
|
// Don't link the library against itself!
|
||||||
if(targetLibrary && (lib->first == targetLibrary))
|
if(targetLibrary && (lib->first == targetLibrary) &&
|
||||||
|
target.GetType() != cmTarget::EXECUTABLE)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user