diff --git a/cmake/pthreads-dep.cmake b/cmake/pthreads-dep.cmake index ff7b0614..81cae146 100644 --- a/cmake/pthreads-dep.cmake +++ b/cmake/pthreads-dep.cmake @@ -12,7 +12,7 @@ set(AIO_FLAGS) if (WITH_ASYNC) include(ExternalProject) - if (MSVC OR (WIN32 AND CMAKE_C_COMPILER_ID MATCHES ".*Clang")) + if (MSVC OR (WIN32 AND CMAKE_C_COMPILER_ID MATCHES ".*Clang.*with MSVC-like command-line.*")) # Pthreads4w: pthreads for windows. if (USING_VCPKG) find_package(PThreads4W REQUIRED)