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;
|
||||
}
|
||||
// Don't link the library against itself!
|
||||
if(targetLibrary && (lib->first == targetLibrary))
|
||||
if(targetLibrary && (lib->first == targetLibrary) &&
|
||||
target.GetType() != cmTarget::EXECUTABLE)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue