diff options
author | Brad King <brad.king@kitware.com> | 2020-10-16 14:35:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-10 12:06:21 (GMT) |
commit | c887cefd9a12342a3ac8dc5c1dbb692b7e8d27af (patch) | |
tree | e2d65de9e53bfb2329d01d917041a4d9f97475f9 /Source/cmLocalGenerator.h | |
parent | 947ba01bf987bce09c2fdd5e2547f79af2c5844b (diff) | |
download | CMake-c887cefd9a12342a3ac8dc5c1dbb692b7e8d27af.zip CMake-c887cefd9a12342a3ac8dc5c1dbb692b7e8d27af.tar.gz CMake-c887cefd9a12342a3ac8dc5c1dbb692b7e8d27af.tar.bz2 |
cmLocalGenerator: Simplify custom command output cmSourceFile creation
Move calls to `CreateGeneratedSource` over to `UpdateOutputToSourceMap`,
which is called for all generated outputs and byproducts.
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r-- | Source/cmLocalGenerator.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index c246e2e..79ffcfb 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -370,7 +370,9 @@ public: * Add target byproducts. */ void AddTargetByproducts(cmTarget* target, - const std::vector<std::string>& byproducts); + const std::vector<std::string>& byproducts, + cmListFileBacktrace const& bt, + cmCommandOrigin origin); enum class OutputRole { @@ -383,7 +385,8 @@ public: */ void AddSourceOutputs(cmSourceFile* source, std::vector<std::string> const& outputs, - OutputRole role); + OutputRole role, cmListFileBacktrace const& bt, + cmCommandOrigin origin); /** * Return the target if the provided source name is a byproduct of a utility @@ -617,9 +620,12 @@ private: using OutputToSourceMap = std::unordered_map<std::string, SourceEntry>; OutputToSourceMap OutputToSource; - void UpdateOutputToSourceMap(std::string const& byproduct, cmTarget* target); + void UpdateOutputToSourceMap(std::string const& byproduct, cmTarget* target, + cmListFileBacktrace const& bt, + cmCommandOrigin origin); void UpdateOutputToSourceMap(std::string const& output, cmSourceFile* source, - OutputRole role); + OutputRole role, cmListFileBacktrace const& bt, + cmCommandOrigin origin); void AddSharedFlags(std::string& flags, const std::string& lang, bool shared); |