Merge pull request #163 from piponazo/MsvcParallel

New MSVC flag to enable Object Level Parallelism in CMake code
This commit is contained in:
Luis Díaz Más 2017-11-12 09:53:26 +01:00 committed by GitHub
commit 2ed661068c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,4 +132,7 @@ if(MSVC)
string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif ()
# Object Level Parallelism
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
endif()