summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/PCH_INSTANTIATE_TEMPLATES.rst
blob: 7c1af2acd3f64ec6914c212f641eebd30a532e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
PCH_INSTANTIATE_TEMPLATES
-------------------------

.. versionadded:: 3.19

When this property is set to true, the precompiled header compiler options
will contain a flag to instantiate templates during the generation of the PCH
if supported. This can significantly improve compile times. Supported in Clang
since version 11.

This property is initialized by the value of the
:variable:`CMAKE_PCH_INSTANTIATE_TEMPLATES` variable if it is set when a target
is created.  If that variable is not set, the property defaults to ``ON``.