Skip to content

Commit

Permalink
Remove an unnecessary check for parallel and thread-safety from examp…
Browse files Browse the repository at this point in the history
…les (HDFGroup#4543)
  • Loading branch information
jhendersonHDF authored and lrknox committed Jun 7, 2024
1 parent 1a78fc7 commit 2fec787
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions HDF5Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2fec787

Please sign in to comment.