diff options
author | Brad King <brad.king@kitware.com> | 2008-08-06 21:48:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-06 21:48:53 (GMT) |
commit | d76b20bf3ae9b045fc3c17f8d5e33fccd997b175 (patch) | |
tree | 745768d27e4635a946234eec29cc72cce255d678 /Source/cmComputeLinkDepends.h | |
parent | 37a009b7f704e26e2a76485d74c3ee5612f208d7 (diff) | |
download | CMake-d76b20bf3ae9b045fc3c17f8d5e33fccd997b175.zip CMake-d76b20bf3ae9b045fc3c17f8d5e33fccd997b175.tar.gz CMake-d76b20bf3ae9b045fc3c17f8d5e33fccd997b175.tar.bz2 |
BUG: Avoid bogus dependency on executable targets
When an executable target within the project is named in
target_link_libraries for another target, but the executable does not
have the ENABLE_EXPORTS property set, then the executable cannot really
be linked. This is probably a case where the user intends to link to a
third-party library that happens to have the same name as an executable
target in the project (or else will get an error at build time). We
need to avoid making the other target depend on the executable target
incorrectly, since the executable may actually want to link to that
target and this is not a circular depenency.
Diffstat (limited to 'Source/cmComputeLinkDepends.h')
-rw-r--r-- | Source/cmComputeLinkDepends.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmComputeLinkDepends.h b/Source/cmComputeLinkDepends.h index 3e42580..5777110 100644 --- a/Source/cmComputeLinkDepends.h +++ b/Source/cmComputeLinkDepends.h @@ -85,6 +85,7 @@ private: void AddLinkEntries(int depender_index, std::vector<std::string> const& libs); std::string CleanItemName(std::string const& item); + cmTarget* FindTargetToLink(const char* name); // One entry for each unique item. std::vector<LinkEntry> EntryList; |