AUTOGEN_PARALLEL.rst 869 B

123456789101112131415161718192021
  1. AUTOGEN_PARALLEL
  2. ----------------
  3. Number of parallel ``moc`` or ``uic`` processes to start when using
  4. :prop_tgt:`AUTOMOC` and :prop_tgt:`AUTOUIC`.
  5. The custom `<origin>_autogen` target starts a number of threads of which
  6. each one parses a source file and on demand starts a ``moc`` or ``uic``
  7. process. :prop_tgt:`AUTOGEN_PARALLEL` controls how many parallel threads
  8. (and therefore ``moc`` or ``uic`` processes) are started.
  9. - An empty (or unset) value or the string ``AUTO`` sets the number of
  10. threads/processes to the number of physical CPUs on the host system.
  11. - A positive non zero integer value sets the exact thread/process count.
  12. - Otherwise a single thread/process is started.
  13. By default :prop_tgt:`AUTOGEN_PARALLEL` is initialized from
  14. :variable:`CMAKE_AUTOGEN_PARALLEL`.
  15. See the :manual:`cmake-qt(7)` manual for more information on using CMake
  16. with Qt.