summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkDepends.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-29 02:25:13 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-29 02:25:13 (GMT)
commit2018d400017b610185b182e8b922b8966eb5c5e3 (patch)
tree10f184ba2d27f808f09cc24d98d483bcafb60a63 /Source/cmComputeLinkDepends.cxx
parentcbeced92baab71d47efecff5f2ceabdff531d3a0 (diff)
downloadCMake-2018d400017b610185b182e8b922b8966eb5c5e3.zip
CMake-2018d400017b610185b182e8b922b8966eb5c5e3.tar.gz
CMake-2018d400017b610185b182e8b922b8966eb5c5e3.tar.bz2
BUG: A -framework Foo is also a lib
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r--Source/cmComputeLinkDepends.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index 95f51f0..e19935b 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/Source/cmComputeLinkDepends.cxx
@@ -312,7 +312,8 @@ int cmComputeLinkDepends::AddLinkEntry(std::string const& item)
LinkEntry& entry = this->EntryList[index];
entry.Item = item;
entry.Target = this->FindTargetToLink(entry.Item.c_str());
- entry.IsFlag = !entry.Target && item[0] == '-' && item[1] != 'l';
+ entry.IsFlag = (!entry.Target && item[0] == '-' && item[1] != 'l' &&
+ item.substr(0, 10) != "-framework");
// If the item has dependencies queue it to follow them.
if(entry.Target)