ddl/cmake/enable_multicore_compilation.cmake

6 lines
180 B
CMake
Raw Permalink Normal View History

2019-12-12 13:41:47 +00:00
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
# enable multicore compilation
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
endif()