cmake: new LLVM based Intel compiler does not recognize MSVC's /MP

This commit is contained in:
Anonymous Maarten 2023-03-23 01:45:48 +01:00 committed by Anonymous Maarten
parent 51d96a1680
commit 4be82202de
1 changed files with 5 additions and 5 deletions

View File

@ -33,11 +33,6 @@ 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()
# CMake 3.0 expands the "if(${A})" in "set(OFF 1);set(A OFF);if(${A})" to "if(1)"
# CMake 3.24+ emits a warning when not set.
unset(OFF)
@ -226,6 +221,11 @@ if(NOT ("$ENV{CFLAGS}" STREQUAL ""))
endif()
endif()
# Build in parallel under Visual Studio. Not enabled by default.
if(MSVC AND NOT USE_CLANG)
target_compile_options(sdl-build-options INTERFACE "/MP")
endif()
if(MSVC)
option(SDL_FORCE_STATIC_VCRT "Force /MT for static VC runtimes" OFF)
if(SDL_FORCE_STATIC_VCRT)