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

This commit is contained in:
Alexey Andronov
2019-12-16 15:53:59 +01:00
committed by Eberhard Graether
parent 1fadf7f2b6
commit a10e96b1a3
+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