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()