From 3834f31b2243f47fd034960aa8dc265a60d3672e Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 4 Mar 2025 00:26:45 +0100 Subject: [PATCH] cmake: exclude `-MP` for `clang-cl` again To avoid this warning/error (seen with Ninja generator): ``` clang-cl: warning: argument unused during compilation: '-MP' [-Wunused-command-line-argument] ``` Curious why CI missed it. Maybe due to using a Visual Studio generator. Regression from e0fd5790d94feb239f7d2457578f2a34c85cdd65 #16004 Closes #16550 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3bfea86fe5..2f9a736116 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1986,7 +1986,7 @@ if(WIN32) endif() endif() -if(MSVC) +if(CMAKE_C_COMPILER_ID STREQUAL "MSVC") # MSVC but exclude clang-cl string(APPEND CMAKE_C_FLAGS " -MP") # Parallel compilation endif() -- 2.47.3