diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2013-11-23 09:49:36 (GMT) |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2013-11-25 21:23:24 (GMT) |
commit | 7605e37aabae2678e5696a75e84aced2e84f9037 (patch) | |
tree | dced8cd0e0baf12da23f2e2221abca2483fba313 /Help/prop_gbl/JOB_POOLS.rst | |
parent | da6b86f4f031b189768dc474721145a1b99f71ea (diff) | |
download | CMake-7605e37aabae2678e5696a75e84aced2e84f9037.zip CMake-7605e37aabae2678e5696a75e84aced2e84f9037.tar.gz CMake-7605e37aabae2678e5696a75e84aced2e84f9037.tar.bz2 |
Ninja: job pool support for compiling and linking
Could be tested by setting the environment
variable NINJA_STATUS=[%r]
Diffstat (limited to 'Help/prop_gbl/JOB_POOLS.rst')
-rw-r--r-- | Help/prop_gbl/JOB_POOLS.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Help/prop_gbl/JOB_POOLS.rst b/Help/prop_gbl/JOB_POOLS.rst new file mode 100644 index 0000000..98b9f7e --- /dev/null +++ b/Help/prop_gbl/JOB_POOLS.rst @@ -0,0 +1,20 @@ +JOB_POOLS +--------- + +Ninja only: List of available pools. + +A pool is a named integer property and defines the maximum number +of concurrent jobs which can be started by a rule assigned to the pool. +The :prop_gbl:`JOB_POOLS` property is a semicolon-separated list of +pairs using the syntax NAME=integer (without a space after the equality sign). + +For instance: + +.. code-block:: cmake + + set_property(GLOBAL PROPERTY JOB_POOLS two_jobs=2 ten_jobs=10) + +Defined pools could be used globally by setting +:variable:`CMAKE_JOB_POOL_COMPILE` and :variable:`CMAKE_JOB_POOL_LINK` +or per target by setting the target properties +:prop_tgt:`JOB_POOL_COMPILE` and :prop_tgt:`JOB_POOL_LINK`. |