Use /MP switch for MSVC and not clang-cl

This commit is contained in:
qurious-pixel 2026-04-06 11:31:22 -07:00 committed by GitHub
parent 6f420afc18
commit 65cc853079
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,8 +85,9 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug" AND NOT MSVC)
add_compile_definitions(_DEBUG)
endif()
if(MSVC)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:/MP>")
add_link_options("/ENTRY:mainCRTStartup")
endif()
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)