mirror of
https://github.com/reactos/CMake.git
synced 2025-02-13 08:06:16 +00:00
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…
x
Reference in New Issue
Block a user