diff options
author | Brad King <brad.king@kitware.com> | 2008-08-27 14:21:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-27 14:21:50 (GMT) |
commit | 012e4c4f68dc75002468cc043065c358bc12a7b5 (patch) | |
tree | 4dc5915f84f0373ff2e8f1709936dc5af2360bc3 /Source/cmComputeLinkDepends.h | |
parent | 32fe1d5b0d79ba4298c95e14f2815e61a05a0e38 (diff) | |
download | CMake-012e4c4f68dc75002468cc043065c358bc12a7b5.zip CMake-012e4c4f68dc75002468cc043065c358bc12a7b5.tar.gz CMake-012e4c4f68dc75002468cc043065c358bc12a7b5.tar.bz2 |
BUG: Do not infer dependencies of link flags
In cmComputeLinkDepends link items that look like flags (starting in
'-') should not be included in dependency inferral. They are not
libraries and therefore have no dependencies. They should just be
passed through to the final link line unchanged. See issue #7546.
Diffstat (limited to 'Source/cmComputeLinkDepends.h')
-rw-r--r-- | Source/cmComputeLinkDepends.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmComputeLinkDepends.h b/Source/cmComputeLinkDepends.h index 5777110..b41da9e 100644 --- a/Source/cmComputeLinkDepends.h +++ b/Source/cmComputeLinkDepends.h @@ -46,9 +46,11 @@ public: std::string Item; cmTarget* Target; bool IsSharedDep; - LinkEntry(): Item(), Target(0), IsSharedDep(false) {} + bool IsFlag; + LinkEntry(): Item(), Target(0), IsSharedDep(false), IsFlag(false) {} LinkEntry(LinkEntry const& r): - Item(r.Item), Target(r.Target), IsSharedDep(r.IsSharedDep) {} + Item(r.Item), Target(r.Target), IsSharedDep(r.IsSharedDep), + IsFlag(r.IsFlag) {} }; typedef std::vector<LinkEntry> EntryVector; |