ddl/cmake/enable_multicore_compilation.cmake
2019-12-12 14:41:47 +01:00

6 lines
180 B
CMake

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()