summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-11-10 16:22:14 (GMT)
committerBrad King <brad.king@kitware.com>2021-11-10 18:53:57 (GMT)
commit0b56f92576232d82a23ab37c597ef9af84daf9e5 (patch)
tree6af221ec70120b5a397581f70acb94815dcfc3ef /Source/cmLocalGenerator.h
parent4fd2d62613af072204910b303fc1506804279df1 (diff)
downloadCMake-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.h8
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,