summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorKaloyan Donev <kdonev@gmail.com>2022-02-07 07:01:32 (GMT)
committerKaloyan Donev <kdonev@gmail.com>2022-02-08 06:07:00 (GMT)
commitb764c7c2731614147c3e4e6379c47df7a92bc3e3 (patch)
treeb7445e799887b80da0368723abb76039ca999323 /Help/prop_tgt
parentca4bb89f276e244b5b56d1988cd659d30df1ca5a (diff)
downloadCMake-b764c7c2731614147c3e4e6379c47df7a92bc3e3.zip
CMake-b764c7c2731614147c3e4e6379c47df7a92bc3e3.tar.gz
CMake-b764c7c2731614147c3e4e6379c47df7a92bc3e3.tar.bz2
VS: Add property to turn off Visual Studio compile batching
Resolves: #23179
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/VS_NO_COMPILE_BATCHING.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Help/prop_tgt/VS_NO_COMPILE_BATCHING.rst b/Help/prop_tgt/VS_NO_COMPILE_BATCHING.rst
new file mode 100644
index 0000000..f8a9fa6
--- /dev/null
+++ b/Help/prop_tgt/VS_NO_COMPILE_BATCHING.rst
@@ -0,0 +1,21 @@
+VS_NO_COMPILE_BATCHING
+----------------------
+
+.. versionadded:: 3.24
+
+Turn off compile batching for the target. Usually MSBuild calls the compiler
+with multiple c/cpp files and compiler starts subprocesses for each file to
+make the build parallel. If you want compiler to be invoked with one file at
+a time set VS_NO_COMPILE_BATCHING to ON. If this flag is set MSBuild will call
+compiler with one c/cpp file at a time. Useful when you want to use tool that
+replaces the compiler, for example some build caching tool.
+
+Example
+^^^^^^^
+
+This shows setting the variable for the target foo.
+
+.. code-block:: cmake
+
+ add_library(foo SHARED foo.cpp)
+ set_property(TARGET foo PROPERTY VS_NO_COMPILE_BATCHING ON)