From 90f76fa28c1c05dce79271dcf0be608119879b62 Mon Sep 17 00:00:00 2001 From: Kris Austin Date: Fri, 21 Aug 2026 13:59:16 -0500 Subject: [PATCH] fix: restore compile parallelism for clang-cl builds with the Visual Studio generator (#15324) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc688b35df..fe3ae1d26d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -343,7 +343,10 @@ else () endif () if (MSVC) - if (SLIC3R_MSVC_COMPILE_PARALLEL AND NOT IS_CLANG_CL) + # /MP only matters for the VS generators, where CMake turns it into the + # MultiProcessorCompilation property. Ninja parallelises on its own, and + # clang-cl warns "argument unused" if the flag reaches it. + if (SLIC3R_MSVC_COMPILE_PARALLEL AND CMAKE_GENERATOR MATCHES "Visual Studio") add_compile_options(/MP) endif () # /bigobj (Increase Number of Sections in .Obj file)