summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-07-26 14:08:32 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-08-29 14:44:09 (GMT)
commit7114c141e27532df709fcae1266bb4ce9b6e850c (patch)
tree0c44c45215b4b1fb58bab5c9974f2d26a9ec3f7c /Source/cmTarget.cxx
parent3ec986ce8e8df269eb6b6b9f37e12b02194168fd (diff)
downloadCMake-7114c141e27532df709fcae1266bb4ce9b6e850c.zip
CMake-7114c141e27532df709fcae1266bb4ce9b6e850c.tar.gz
CMake-7114c141e27532df709fcae1266bb4ce9b6e850c.tar.bz2
Unity build: Add support for Ninja and Makefile generators
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 2a09b43..10ea7dd 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -352,6 +352,8 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
initProp("Swift_MODULE_DIRECTORY");
initProp("VS_JUST_MY_CODE_DEBUGGING");
initProp("DISABLE_PRECOMPILE_HEADERS");
+ initProp("UNITY_BUILD");
+ initPropValue("UNITY_BUILD_BATCH_SIZE", "8");
#ifdef __APPLE__
if (this->GetGlobalGenerator()->IsXcode()) {
initProp("XCODE_GENERATE_SCHEME");