cmake/Help/prop_tgt/JOB_POOL_PRECOMPILE_HEADER.rst

24 lines
669 B
ReStructuredText
Raw Normal View History

2020-08-30 11:54:41 +02:00
JOB_POOL_PRECOMPILE_HEADER
--------------------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.17
2020-08-30 11:54:41 +02:00
Ninja only: Pool used for generating pre-compiled headers.
The number of parallel compile processes could be limited by defining
pools with the global :prop_gbl:`JOB_POOLS`
property and then specifying here the pool name.
For instance:
.. code-block:: cmake
set_property(TARGET myexe PROPERTY JOB_POOL_PRECOMPILE_HEADER two_jobs)
This property is initialized by the value of
:variable:`CMAKE_JOB_POOL_PRECOMPILE_HEADER`.
2023-05-23 16:38:00 +02:00
If neither ``JOB_POOL_PRECOMPILE_HEADER`` nor
2020-08-30 11:54:41 +02:00
:variable:`CMAKE_JOB_POOL_PRECOMPILE_HEADER` are set then
:prop_tgt:`JOB_POOL_COMPILE` will be used for this task.