From 8f4e2839f315cfe9a56c7b03a98d2ed7f7e7c0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Ahlb=C3=A4ck?= Date: Mon, 13 Jan 2025 18:42:52 +0100 Subject: [PATCH] Fixup for finding pthread.h in CMake --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f0786915e..1e62938646 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,6 +140,8 @@ if(MSVC) if(NOT HAVE_PTHREAD_H) message(FATAL_ERROR "Could not find pthreads.") endif() + unset(PThreads_LIBRARIES) + unset(PThreads_INCLUDE_DIRS) endif() endif() set(FLINT_USES_PTHREAD ON CACHE BOOL "Use POSIX Threads.")