summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-01 17:20:21 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-01 17:59:51 (GMT)
commit6d34cc3cb8062647030df9bf7a890615844d3d8f (patch)
treeb572bb4653b4624c6f7095d4ea04dd9576fa0f11 /Source/cmGeneratorTarget.h
parent6e1be5dbefab3e7317502e3d0fe4b132d0162ae5 (diff)
downloadCMake-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.h6
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,