summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_VS_NO_COMPILE_BATCHING.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-22 15:52:27 (GMT)
committerBrad King <brad.king@kitware.com>2022-06-22 16:07:03 (GMT)
commit9a0a94fdaaa04474ff37cb2896cda640d8013b43 (patch)
tree8d3ec7008317915b8838e26baba841e6fb30f1e8 /Help/variable/CMAKE_VS_NO_COMPILE_BATCHING.rst
parenta7ebb73929cacecb782bc95a588c37acde1c7185 (diff)
downloadCMake-9a0a94fdaaa04474ff37cb2896cda640d8013b43.zip
CMake-9a0a94fdaaa04474ff37cb2896cda640d8013b43.tar.gz
CMake-9a0a94fdaaa04474ff37cb2896cda640d8013b43.tar.bz2
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
Diffstat (limited to 'Help/variable/CMAKE_VS_NO_COMPILE_BATCHING.rst')
-rw-r--r--Help/variable/CMAKE_VS_NO_COMPILE_BATCHING.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_VS_NO_COMPILE_BATCHING.rst b/Help/variable/CMAKE_VS_NO_COMPILE_BATCHING.rst
new file mode 100644
index 0000000..2fb163e
--- /dev/null
+++ b/Help/variable/CMAKE_VS_NO_COMPILE_BATCHING.rst
@@ -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)