diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2024-01-18 18:19:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-18 22:40:44 (GMT) |
commit | d791f3a180c7231bc2b45c9204c0a912c06b91ee (patch) | |
tree | b603806f141162f94b2137a00c6da40a714a9674 /Source/cmExportTryCompileFileGenerator.h | |
parent | 2352dcc830ca4be6ccf05f801241b158ac79e7d7 (diff) | |
download | CMake-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/cmExportTryCompileFileGenerator.h')
-rw-r--r-- | Source/cmExportTryCompileFileGenerator.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmExportTryCompileFileGenerator.h b/Source/cmExportTryCompileFileGenerator.h index 5c34fad..4c7d287 100644 --- a/Source/cmExportTryCompileFileGenerator.h +++ b/Source/cmExportTryCompileFileGenerator.h @@ -56,7 +56,10 @@ protected: cmTargetExport* te) override; std::string GetCxxModulesDirectory() const override { return {}; } - void GenerateCxxModuleConfigInformation(std::ostream&) const override {} + void GenerateCxxModuleConfigInformation(std::string const&, + std::ostream&) const override + { + } private: std::string FindTargets(const std::string& prop, |