From 2018d400017b610185b182e8b922b8966eb5c5e3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 28 Aug 2008 22:25:13 -0400 Subject: BUG: A -framework Foo is also a lib --- Source/cmComputeLinkDepends.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12