diff options
author | Brad King <brad.king@kitware.com> | 2008-08-29 02:25:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-29 02:25:13 (GMT) |
commit | 2018d400017b610185b182e8b922b8966eb5c5e3 (patch) | |
tree | 10f184ba2d27f808f09cc24d98d483bcafb60a63 /Source/cmComputeLinkDepends.cxx | |
parent | cbeced92baab71d47efecff5f2ceabdff531d3a0 (diff) | |
download | CMake-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.cxx | 3 |
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) |