diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-06-16 14:22:43 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-06-16 14:22:43 (GMT) |
commit | 84dce824e5c5779800b9608835afacba77372d5e (patch) | |
tree | 4258f3cd4758c6ced16a5b3ec31a93493896de10 /Source | |
parent | 67c4e66845c44bbdc4a4242e264672c5363bb5c1 (diff) | |
download | CMake-84dce824e5c5779800b9608835afacba77372d5e.zip CMake-84dce824e5c5779800b9608835afacba77372d5e.tar.gz CMake-84dce824e5c5779800b9608835afacba77372d5e.tar.bz2 |
ENH: make more specific in reject self linking
Diffstat (limited to 'Source')
-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; } |