diff options
author | Brad King <brad.king@kitware.com> | 2022-06-22 15:52:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-06-22 16:07:03 (GMT) |
commit | 9a0a94fdaaa04474ff37cb2896cda640d8013b43 (patch) | |
tree | 8d3ec7008317915b8838e26baba841e6fb30f1e8 /Tests/RunCMake/VS10Project | |
parent | a7ebb73929cacecb782bc95a588c37acde1c7185 (diff) | |
download | CMake-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 'Tests/RunCMake/VS10Project')
-rw-r--r-- | Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake b/Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake index c96edce..b405136 100644 --- a/Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake +++ b/Tests/RunCMake/VS10Project/VsNoCompileBatching.cmake @@ -2,8 +2,8 @@ enable_language(CXX) add_library(foo foo.cpp) +set(CMAKE_VS_NO_COMPILE_BATCHING ON) 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) |