summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-01-18 18:19:17 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-18 22:40:44 (GMT)
commitd791f3a180c7231bc2b45c9204c0a912c06b91ee (patch)
treeb603806f141162f94b2137a00c6da40a714a9674 /Source/cmExportInstallFileGenerator.h
parent2352dcc830ca4be6ccf05f801241b158ac79e7d7 (diff)
downloadCMake-d791f3a180c7231bc2b45c9204c0a912c06b91ee.zip
CMake-d791f3a180c7231bc2b45c9204c0a912c06b91ee.tar.gz
CMake-d791f3a180c7231bc2b45c9204c0a912c06b91ee.tar.bz2
cxxmodules: make export trampoline script files unique
Include the name of the `EXPORT` in the filename when generating export information for C++ modules. This allows the same directory to be used for multiple sets of C++ module-using targets. For `export(TARGETS)` uses, generate a name based on the hash of the concatenation of the target names involved with the `export()` call. Fixes: #25609
Diffstat (limited to 'Source/cmExportInstallFileGenerator.h')
-rw-r--r--Source/cmExportInstallFileGenerator.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmExportInstallFileGenerator.h b/Source/cmExportInstallFileGenerator.h
index e073a31..253a65e 100644
--- a/Source/cmExportInstallFileGenerator.h
+++ b/Source/cmExportInstallFileGenerator.h
@@ -118,8 +118,10 @@ protected:
cmTargetExport* te) override;
std::string GetCxxModulesDirectory() const override;
- void GenerateCxxModuleConfigInformation(std::ostream&) const override;
- bool GenerateImportCxxModuleConfigTargetInclusion(std::string const&);
+ void GenerateCxxModuleConfigInformation(std::string const&,
+ std::ostream&) const override;
+ bool GenerateImportCxxModuleConfigTargetInclusion(std::string const&,
+ std::string const&);
cmInstallExportGenerator* IEGen;