diff options
author | Brad King <brad.king@kitware.com> | 2022-04-01 17:20:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-04-01 17:59:51 (GMT) |
commit | 6d34cc3cb8062647030df9bf7a890615844d3d8f (patch) | |
tree | b572bb4653b4624c6f7095d4ea04dd9576fa0f11 /Source/cmGeneratorTarget.h | |
parent | 6e1be5dbefab3e7317502e3d0fe4b132d0162ae5 (diff) | |
download | CMake-6d34cc3cb8062647030df9bf7a890615844d3d8f.zip CMake-6d34cc3cb8062647030df9bf7a890615844d3d8f.tar.gz CMake-6d34cc3cb8062647030df9bf7a890615844d3d8f.tar.bz2 |
export: Fix TARGET_NAME lookup for out-of-dir linking
Improve the logic added by commit f0e67da061 (target_link_libraries: Fix
out-of-dir linking of a list of targets, 2020-01-14, v3.17.0-rc1~149^2)
to, while exporting targets, look up referenced target names in the
correct directory.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r-- | Source/cmGeneratorTarget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index 53844ae..b927848 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -856,6 +856,9 @@ public: std::string GetFortranModuleDirectory(std::string const& working_dir) const; bool IsFortranBuildingInstrinsicModules() const; + bool IsLinkLookupScope(std::string const& n, + cmLocalGenerator const*& lg) const; + cmValue GetSourcesProperty() const; void AddISPCGeneratedHeader(std::string const& header, @@ -1073,9 +1076,6 @@ private: std::unordered_map<std::string, std::vector<std::string>> ISPCGeneratedObjects; - bool IsLinkLookupScope(std::string const& n, - cmLocalGenerator const*& lg) const; - enum class LinkInterfaceField { Libraries, |