Remove an unnecessary check for parallel and thread-safety from examples (#4543)

This commit is contained in:
jhendersonHDF 2024-06-03 15:10:19 -05:00 committed by GitHub
parent 3877c074bc
commit b823c1609d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,11 +98,11 @@ endif ()
# Note: Currently CMake only allows configuring of threadsafe on WINDOWS.
#-----------------------------------------------------------------------------
option (HDF_ENABLE_THREADSAFE "Enable Threadsafety" OFF)
if (HDF_ENABLE_THREADSAFE)
# check for unsupported options
if (HDF_ENABLE_PARALLEL)
message (FATAL " **** Parallel and Threadsafe options are mutually exclusive **** ")
endif ()
# Note that HDF_ENABLE_THREADSAFE is the CMake option for determining
# whether to enable thread-safety in the examples. HDF5_ENABLE_THREADSAFE
# is the CMake option determining whether HDF5 was configured with
# thread-safety enabled.
if (HDF_ENABLE_THREADSAFE AND HDF5_ENABLE_THREADSAFE)
if (WIN32)
set (H5_HAVE_WIN_THREADS 1)
set (H5_HAVE_THREADSAFE 1)