Multi-Processor in Visual Studio

It is /MP:

in CMake:

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
  # using Visual Studio C++
  add_definitions(-MP)
endif()

Leave a Reply

Your email address will not be published.