Under MSVC, build project-sources in parallel.

This commit is contained in:
ulatekh 2022-01-04 15:46:04 -07:00 committed by Sam Lantinga
parent 565ef63873
commit 3ea82eaaff
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ if(WINDOWS_STORE)
target_compile_options(sdl-build-options INTERFACE "-ZW")
endif()
# Build in parallel under Visual Studio. Not enabled by default.
if(MSVC)
target_compile_options(sdl-build-options INTERFACE "/MP")
endif(MSVC)
# !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
# !!! FIXME: for the SDL2 shared library (so you get an