From 65cc8530796232ea044c47258473f8dc4a0b4141 Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Mon, 6 Apr 2026 11:31:22 -0700 Subject: [PATCH] Use /MP switch for MSVC and not clang-cl --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 217c40f341..02d614a5b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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("$<$:/MP>") + add_link_options("/ENTRY:mainCRTStartup") endif() if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)