mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user