mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49: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:
parent
65d9d9a0d8
commit
5d2e477f06
1 changed files with 3 additions and 2 deletions
|
@ -350,8 +350,9 @@ endif()
|
|||
|
||||
|
||||
if(MSVC)
|
||||
# Statically link Microsoft's runtime library so end users don't have to install it
|
||||
list(APPEND GLOBAL_COMPILE_FLAGS /MT)
|
||||
# Statically link Microsoft's runtime library so end users don't have to install it (/MT)
|
||||
# Also, build with multiple processors (/MP)
|
||||
list(APPEND GLOBAL_COMPILE_FLAGS /MT /MP)
|
||||
endif()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue