mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 06:40:01 +00:00
[CMake] enabled multi-core builds in VS projects
This commit is contained in:
@@ -273,6 +273,9 @@ elseif(MSVC)
|
|||||||
# warning C4512: assignment operator could not be generated
|
# warning C4512: assignment operator could not be generated
|
||||||
# warning C4316: object allocated on the heap may not be aligned
|
# warning C4316: object allocated on the heap may not be aligned
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX /wd4512 /wd4316")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX /wd4512 /wd4316")
|
||||||
|
|
||||||
|
# multi-core build.
|
||||||
|
add_definitions("/MP")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(FLATBUFFERS_CODE_COVERAGE)
|
if(FLATBUFFERS_CODE_COVERAGE)
|
||||||
|
|||||||
Reference in New Issue
Block a user