Merge topic 'vs-compile-batching'

9a0a94fdaa VS: Add variable to to turn off Visual Studio compile batching
a7ebb73929 Help: Improve formatting in VS_NO_COMPILE_BATCHING docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7405
This commit is contained in:
Brad King
2022-06-23 13:23:48 +00:00
committed by Kitware Robot
6 changed files with 35 additions and 9 deletions

View File

@@ -0,0 +1,20 @@
CMAKE_VS_NO_COMPILE_BATCHING
----------------------------
.. versionadded:: 3.24
Turn off compile batching when using :ref:`Visual Studio Generators`.
This variable is used to initialize the :prop_tgt:`VS_NO_COMPILE_BATCHING`
property on all targets when they are created. See that target property for
additional information.
Example
^^^^^^^
This shows setting the property for the target ``foo`` using the variable.
.. code-block:: cmake
set(CMAKE_VS_NO_COMPILE_BATCHING ON)
add_library(foo SHARED foo.cpp)