summaryrefslogtreecommitdiff
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorTobias Hieta <tobias@plex.tv>2020-08-28 09:16:04 +0200
committerTobias Hieta <tobias@plex.tv>2020-09-02 08:30:55 +0200
commit8c8f03422e3197a3414a8ed1413fcb9576df0f4b (patch)
tree526e5b6341f3f63dd848623be82448fab17f5285 /Source/cmTarget.cxx
parent8c833ff0e17e63d9cbf17622abcb70a5fab240b8 (diff)
downloadcmake-8c8f03422e3197a3414a8ed1413fcb9576df0f4b.tar.gz
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.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx1
1 files changed, 1 insertions, 0 deletions
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()) {