summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-23 13:23:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-06-23 13:23:56 (GMT)
commit5d8289116d4f23774567b665fb982894d9e16efd (patch)
treec4ef48f43f44294eb8f90661e0888004c51c55e1 /Help/variable
parent1208276f96c2e71d752dda199343d76856b40da7 (diff)
parent9a0a94fdaaa04474ff37cb2896cda640d8013b43 (diff)
downloadCMake-5d8289116d4f23774567b665fb982894d9e16efd.zip
CMake-5d8289116d4f23774567b665fb982894d9e16efd.tar.gz
CMake-5d8289116d4f23774567b665fb982894d9e16efd.tar.bz2
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
Diffstat (limited to 'Help/variable')
-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)