cmake/Help/variable/CMAKE_VS_NO_COMPILE_BATCHING.rst

21 lines
520 B
ReStructuredText
Raw Normal View History

2022-08-04 22:12:04 +02:00
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)