build: add multiprocessor compilation flag to cmake to speedup builds (#793)

This commit is contained in:
Alexey Andronov
2019-11-28 20:47:07 +01:00
committed by Malte Langkabel
parent 9274758d5d
commit 52ae646f26
+2
View File
@@ -75,6 +75,8 @@ set(CMAKE_C_STANDARD 99)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option -fcolor-diagnostics -fvisibility-inlines-hidden")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
ADD_COMPILE_OPTIONS(/MP)
endif()
# For debugging the release build on linux