diff options
author | Brad King <brad.king@kitware.com> | 2021-11-10 16:22:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-10 18:53:57 (GMT) |
commit | 0b56f92576232d82a23ab37c597ef9af84daf9e5 (patch) | |
tree | 6af221ec70120b5a397581f70acb94815dcfc3ef /Source/cmLocalGenerator.h | |
parent | 4fd2d62613af072204910b303fc1506804279df1 (diff) | |
download | CMake-0b56f92576232d82a23ab37c597ef9af84daf9e5.zip CMake-0b56f92576232d82a23ab37c597ef9af84daf9e5.tar.gz CMake-0b56f92576232d82a23ab37c597ef9af84daf9e5.tar.bz2 |
cmLocalGenerator: De-duplicate unity source file generation
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r-- | Source/cmLocalGenerator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index b86c8e8..7078482 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -40,6 +40,9 @@ class cmState; class cmTarget; class cmake; +template <typename Iter> +class cmRange; + /** Flag if byproducts shall also be considered. */ enum class cmSourceOutputKind { @@ -657,6 +660,11 @@ private: const std::string& ReuseFrom, cmGeneratorTarget* reuseTarget, std::vector<std::string> const& extensions); + + std::string WriteUnitySource( + cmGeneratorTarget* target, + cmRange<std::vector<cmSourceFile*>::const_iterator> sources, + cmValue beforeInclude, cmValue afterInclude, std::string filename) const; void IncludeFileInUnitySources(cmGeneratedFileStream& unity_file, std::string const& sf_full_path, cmValue beforeInclude, cmValue afterInclude, |