summaryrefslogtreecommitdiffstats
path: root/Source/cmOrderLinkDirectories.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-16 14:22:43 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-16 14:22:43 (GMT)
commit84dce824e5c5779800b9608835afacba77372d5e (patch)
tree4258f3cd4758c6ced16a5b3ec31a93493896de10 /Source/cmOrderLinkDirectories.cxx
parent67c4e66845c44bbdc4a4242e264672c5363bb5c1 (diff)
downloadCMake-84dce824e5c5779800b9608835afacba77372d5e.zip
CMake-84dce824e5c5779800b9608835afacba77372d5e.tar.gz
CMake-84dce824e5c5779800b9608835afacba77372d5e.tar.bz2
ENH: make more specific in reject self linking
Diffstat (limited to 'Source/cmOrderLinkDirectories.cxx')
-rw-r--r--Source/cmOrderLinkDirectories.cxx3
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;
}