From 34edd0c3d4908cba607cd831899c3e4975eb5bde Mon Sep 17 00:00:00 2001 From: Jamie Date: Thu, 31 Oct 2024 13:36:24 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dd275d..14d0bb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,6 +70,9 @@ endif() # set fetch content base directory set(FETCHCONTENT_BASE_DIR ${CMAKE_BINARY_DIR}/external_cmake) +# prefer -pthread instead of -lpthread or -lpthreads +set(THREADS_PREFER_PTHREAD_FLAG TRUE) + include(ExternalAbseil) include(ExternalBlake3) include(ExternalFmt)