mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
VS: Add variable to to turn off Visual Studio compile batching
Extend the change from commit b764c7c273 (VS: Add property to turn off
Visual Studio compile batching, 2022-02-07, v3.24.0-rc1~710^2) by
adding a variable to initialize the property on every target.
Issue: #23179
Fixes: #23639
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user