File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,9 @@ if(WIN32)
102
102
if (MSVC )
103
103
set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
104
104
add_compile_options (/utf-8 /Zc:__cplusplus )
105
+ # Improve parallelism in MSBuild.
106
+ # See: https://devblogs.microsoft.com/cppblog/improved-parallelism-in-msbuild/.
107
+ list (APPEND CMAKE_VS_GLOBALS "UseMultiToolTask=true" )
105
108
endif ()
106
109
107
110
if (MINGW )
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ if(CCACHE)
13
13
set (MSVC_CCACHE_WRAPPER_CONTENT "\" ${CCACHE_EXECUTABLE} \" \" ${CMAKE_CXX_COMPILER} \" " )
14
14
set (MSVC_CCACHE_WRAPPER_FILENAME wrapped-cl.bat )
15
15
file (WRITE ${CMAKE_BINARY_DIR} /${MSVC_CCACHE_WRAPPER_FILENAME} "${MSVC_CCACHE_WRAPPER_CONTENT} %*" )
16
- set ( CMAKE_VS_GLOBALS
16
+ list ( APPEND CMAKE_VS_GLOBALS
17
17
"CLToolExe=${MSVC_CCACHE_WRAPPER_FILENAME} "
18
18
"CLToolPath=${CMAKE_BINARY_DIR} "
19
19
"TrackFileAccess=false"
20
- "UseMultiToolTask=true"
21
20
"DebugInformationFormat=OldStyle"
22
21
)
23
22
else ()
You can’t perform that action at this time.
0 commit comments