PCH_INSTANTIATE_TEMPLATES

From Get docs
Cmake/docs/3.21/prop tgt/pch instantiate templates


PCH_INSTANTIATE_TEMPLATES

New in version 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 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.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/prop_tgt/PCH_INSTANTIATE_TEMPLATES.html