AUTOGEN_PARALLEL

Number of parallel moc or uic processes to start when using AUTOMOC and AUTOUIC .

The custom <origin>_autogen target starts a number of threads of which each one parses a source file and on demand starts a moc or uic process. AUTOGEN_PARALLEL controls how many parallel threads (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.

默认情况下 AUTOGEN_PARALLEL is initialized from CMAKE_AUTOGEN_PARALLEL .

cmake-qt(7) manual for more information on using CMake with Qt.

上一话题

AUTOGEN_ORIGIN_DEPENDS

下一话题

AUTOGEN_TARGET_DEPENDS

本页