[CMake] enabled multi-core builds in VS projects

This commit is contained in:
Wouter van Oortmerssen 2020-08-18 14:00:22 -07:00
parent 77f966f89f
commit d713a00843
1 changed files with 3 additions and 0 deletions

View File

@ -273,6 +273,9 @@ elseif(MSVC)
# warning C4512: assignment operator could not be generated
# warning C4316: object allocated on the heap may not be aligned
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX /wd4512 /wd4316")
# multi-core build.
add_definitions("/MP")
endif()
if(FLATBUFFERS_CODE_COVERAGE)