Skip to content

Commit

Permalink
Fix Win32 threads oops
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins committed Mar 16, 2024
1 parent 77baf94 commit d30f4b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit d30f4b5

Please sign in to comment.