From d713a00843bc4b62bf470db017e87caeda0fff1c Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Tue, 18 Aug 2020 14:00:22 -0700 Subject: [CMake] enabled multi-core builds in VS projects --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 15251152..9201d679 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- cgit v1.2.3