From a5d4911a168485752669ee8ccd50a3100cf5fafd Mon Sep 17 00:00:00 2001 From: crjc <57661759+crjc@users.noreply.github.com> Date: Thu, 22 Dec 2022 17:16:10 +0000 Subject: [PATCH] Fix macos link error (#423) * Fix macos link error * Update CMakeLists.txt * Update CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)