diff options
Diffstat (limited to 'Source/cmOrderLinkDirectories.cxx')
-rw-r--r-- | Source/cmOrderLinkDirectories.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmOrderLinkDirectories.cxx b/Source/cmOrderLinkDirectories.cxx index 5082b8f..66eb95f 100644 --- a/Source/cmOrderLinkDirectories.cxx +++ b/Source/cmOrderLinkDirectories.cxx @@ -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; } |