Pthread: cmake 3.26.1 could not find pthread on macos 11, but 3.26.0 can
Trying to compile clickhouse on my github action, after brew update cmake to 3.26.1, pthreads could not be find
Failed github action link: https://github.com/auxten/chdb/actions/runs/4517440880/jobs/7956643706
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - no -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found CMake Error at /usr/local/Cellar/cmake/3.26.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Threads (missing: Threads_FOUND) Call Stack (most recent call first): /usr/local/Cellar/cmake/3.26.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) -- Configuring incomplete, errors occurred! /usr/local/Cellar/cmake/3.26.1/share/cmake/Modules/FindThreads.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) cmake/darwin/default_libs.cmake:23 (find_package) CMakeLists.txt:444 (include)