From e7dded1416adcfc5a3930453fdc071345c18335b Mon Sep 17 00:00:00 2001 From: Jordan Henderson Date: Mon, 3 Jun 2024 13:10:29 -0500 Subject: [PATCH] Remove an unnecessary check for parallel and thread-safety from examples --- HDF5Examples/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HDF5Examples/CMakeLists.txt b/HDF5Examples/CMakeLists.txt index d8e02d501d2..4752dc39952 100644 --- a/HDF5Examples/CMakeLists.txt +++ b/HDF5Examples/CMakeLists.txt @@ -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)