Enable multi-processor compilation in Visual Studio projects

This commit is contained in:
Matias Kangasjärvelä 2024-05-18 15:01:43 +03:00
parent 813f4243db
commit 63da2886d1

View File

@ -27,6 +27,7 @@ endif()
if(WIN32)
add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN)
add_compile_options(/MP)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdiagnostics-color=always")