summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake
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 /Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake
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 'Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake')
-rw-r--r--Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake b/Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake
new file mode 100644
index 0000000..c96edce
--- /dev/null
+++ b/Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake
@@ -0,0 +1,9 @@
+enable_language(CXX)
+
+add_library(foo foo.cpp)
+
+add_library(foo_NB foo.cpp)
+set_property(TARGET foo_NB PROPERTY VS_NO_COMPILE_BATCHING ON)
+
+add_library(foo_NB_OFF foo.cpp)
+set_property(TARGET foo_NB_OFF PROPERTY VS_NO_COMPILE_BATCHING OFF)