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.
This commit is contained in:
Tobias Hieta
2020-08-28 09:16:04 +02:00
parent 8c833ff0e1
commit 8c8f03422e
12 changed files with 84 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
CMAKE_PCH_INSTANTIATE_TEMPLATES
-------------------------------
.. versionadded:: 3.19
This variable is used to initialize the :prop_tgt:`PCH_INSTANTIATE_TEMPLATES`
property of targets when they are created.