summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkDepends.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-27 14:21:50 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-27 14:21:50 (GMT)
commit012e4c4f68dc75002468cc043065c358bc12a7b5 (patch)
tree4dc5915f84f0373ff2e8f1709936dc5af2360bc3 /Source/cmComputeLinkDepends.h
parent32fe1d5b0d79ba4298c95e14f2815e61a05a0e38 (diff)
downloadCMake-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.h6
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;