cmake/Help/prop_tgt/AUTOGEN_PARALLEL.rst

22 lines
855 B
ReStructuredText
Raw Normal View History

2018-04-23 21:13:27 +02:00
AUTOGEN_PARALLEL
----------------
Number of parallel ``moc`` or ``uic`` processes to start when using
:prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC`.
2020-08-30 11:54:41 +02:00
The custom ``<origin>_autogen`` target starts a number of threads of which
2018-04-23 21:13:27 +02:00
each one parses a source file and on demand starts a ``moc`` or ``uic``
2020-08-30 11:54:41 +02:00
process. ``AUTOGEN_PARALLEL`` controls how many parallel threads
2018-04-23 21:13:27 +02:00
(and therefore ``moc`` or ``uic`` processes) are started.
- An empty (or unset) value or the string ``AUTO`` sets the number of
threads/processes to the number of physical CPUs on the host system.
- A positive non zero integer value sets the exact thread/process count.
- Otherwise a single thread/process is started.
2020-08-30 11:54:41 +02:00
By default ``AUTOGEN_PARALLEL`` is initialized from
2018-04-23 21:13:27 +02:00
:variable:`CMAKE_AUTOGEN_PARALLEL`.
See the :manual:`cmake-qt(7)` manual for more information on using CMake
with Qt.