1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Add /MP to CMakeLists for Windows

This should make compilation on Windows faster because it uses multiple
processors. The Windows CI is the slowest, so let's make it faster.
From my experimentation, adding this flag does seem to reduce compile
times, especially after the first build (default version) is done.

https://learn.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170
This commit is contained in:
Dav999-v 2023-03-21 23:15:23 +01:00 committed by Misa Elizabeth Kai
parent 65d9d9a0d8
commit 5d2e477f06

View file

@ -350,8 +350,9 @@ endif()
if(MSVC) if(MSVC)
# Statically link Microsoft's runtime library so end users don't have to install it # Statically link Microsoft's runtime library so end users don't have to install it (/MT)
list(APPEND GLOBAL_COMPILE_FLAGS /MT) # Also, build with multiple processors (/MP)
list(APPEND GLOBAL_COMPILE_FLAGS /MT /MP)
endif() endif()