diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a4b36b6..72626ef6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -251,7 +251,7 @@ if (WIN32) endif() endif() -if (UNIX) +if (UNIX AND NOT APPLE) set(THREADS_PREFER_PTHREAD_FLAG TRUE) find_package(Threads) target_link_libraries(ixwebsocket PRIVATE Threads::Threads)