diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-02-07 23:01:00 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-08-17 18:42:53 (GMT) |
commit | 80d65443982ca1b2c98c84ae86e2bfccdbdd7678 (patch) | |
tree | 10a09814846a5eb88663d9de29e7de8175c24425 /Source/cmGeneratorTarget.h | |
parent | 3dc6676ecc4ef8a74b057f284f123fd54e867fa4 (diff) | |
download | CMake-80d65443982ca1b2c98c84ae86e2bfccdbdd7678.zip CMake-80d65443982ca1b2c98c84ae86e2bfccdbdd7678.tar.gz CMake-80d65443982ca1b2c98c84ae86e2bfccdbdd7678.tar.bz2 |
cxxmodules: generate synthetic targets as an initial pass
We need to be able to construct BMIs that will be usable from the client
modules for the target importing the module, so create BMI-only
compilation rules for `IMPORTED` targets to create these BMIs.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r-- | Source/cmGeneratorTarget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index 3adf5b8..f347133 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -31,6 +31,7 @@ class cmGlobalGenerator; class cmLocalGenerator; class cmMakefile; class cmSourceFile; +struct cmSyntheticTargetCache; class cmTarget; struct cmGeneratorExpressionContext; @@ -932,6 +933,9 @@ public: std::string GetImportedXcFrameworkPath(const std::string& config) const; + bool DiscoverSyntheticTargets(cmSyntheticTargetCache& cache, + std::string const& config); + private: void AddSourceCommon(const std::string& src, bool before = false); @@ -1307,6 +1311,8 @@ private: { bool BuiltFileSetCache = false; std::map<std::string, cmFileSet const*> FileSetCache; + std::map<cmGeneratorTarget const*, std::vector<cmGeneratorTarget const*>> + SyntheticDeps; }; mutable std::map<std::string, InfoByConfig> Configs; }; |