diff options
author | Brad King <brad.king@kitware.com> | 2008-08-29 02:07:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-29 02:07:19 (GMT) |
commit | 006f2b069abe2dae16d2d5cfab8866ae1697b4c3 (patch) | |
tree | 45e0f5a8c6baafcff20c99f59c328d9499702d05 /Source/cmComputeLinkDepends.cxx | |
parent | 4292f4516002052df7d89bee09023948a700e03d (diff) | |
download | CMake-006f2b069abe2dae16d2d5cfab8866ae1697b4c3.zip CMake-006f2b069abe2dae16d2d5cfab8866ae1697b4c3.tar.gz CMake-006f2b069abe2dae16d2d5cfab8866ae1697b4c3.tar.bz2 |
BUG: When recognizing flags on link lines, we must still treat -l as a library.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r-- | Source/cmComputeLinkDepends.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index 8d17ab3..598ac02 100644 --- a/Source/cmComputeLinkDepends.cxx +++ b/Source/cmComputeLinkDepends.cxx @@ -312,7 +312,7 @@ 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] == '-'; + entry.IsFlag = !entry.Target && item[0] == '-' && item[1] == 'l'; // If the item has dependencies queue it to follow them. if(entry.Target) |