From c9505e805a45bec80f4cbbfcb6801db24cd6b513 Mon Sep 17 00:00:00 2001
From: Oliver Heidmann <oliver.heidmann@mpimet.mpg.de>
Date: Mon, 17 Feb 2025 12:28:11 +0100
Subject: [PATCH] Pthreads is now required

---
 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4be38d46f..9b658f2ec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,8 +24,9 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
 ### -------------- Pthread ---------------------------
 message("Start check for pthread")
 include(FindThreads)
-find_package(Threads)
+find_package(Threads REQUIRED)
 set_target_properties(Threads::Threads PROPERTIES THREADS_PREFER_PTHREAD_FLAG TRUE)
+list(APPEND cdo_compile_defintions HAVE_LIBPTHREAD=1)
 
 ### -------------- WordExp ---------------------------
 message("Start check for wordexp")
-- 
GitLab