Merge pull request #794 from M4T1A5/cmake-multiprocess-compilation

Server CMake: Enable multi-processor compilation in Visual Studio projects
This commit is contained in:
Bartosz Taudul 2024-05-18 14:24:37 +02:00 committed by GitHub
commit 8983e14e18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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