From 8c8f03422e3197a3414a8ed1413fcb9576df0f4b Mon Sep 17 00:00:00 2001 From: Tobias Hieta Date: Fri, 28 Aug 2020 09:16:04 +0200 Subject: PCH: Template instantiation support Adds PCH_INSTANTIATE_TEMPLATES target property for enabling template instantiation in precompiled headers. Enabled by default. Currently only supported for Clang 11 and newer. Implements #21133. --- Source/cmTarget.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/cmTarget.cxx') diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index bea9001e20..6aa23c2788 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -377,6 +377,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, initPropValue("UNITY_BUILD_BATCH_SIZE", "8"); initPropValue("UNITY_BUILD_MODE", "BATCH"); initPropValue("PCH_WARN_INVALID", "ON"); + initPropValue("PCH_INSTANTIATE_TEMPLATES", "ON"); #ifdef __APPLE__ if (this->GetGlobalGenerator()->IsXcode()) { -- cgit v1.2.1