mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
committed by
Misa Elizabeth Kai
parent
65d9d9a0d8
commit
5d2e477f06
@@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user