From d30f4b5822cae7a350ae8a701e524420eb85a014 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Fri, 15 Mar 2024 23:42:28 -0700 Subject: [PATCH] Fix Win32 threads oops --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index de44474e0be..81a6e96b6fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -919,7 +919,10 @@ if (HDF5_ENABLE_THREADSAFE) message (VERBOSE " **** Allowing unsupported HL and thread-safety options **** ") endif () endif () - if (NOT WINDOWS OR CYGWIN) + if (WIN32) + # When Win32 is available, we use those threads + set (H5_HAVE_WIN_THREADS 1) + else () if (NOT H5_HAVE_PTHREAD_H) message (FATAL_ERROR " **** thread-safe option requires Win32 threads or Pthreads **** ") endif ()