summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-02-01 21:23:54 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-02-01 21:23:54 (GMT)
commit055208b71c573be3d4b1047b840d4d8b255bc25e (patch)
treecbacd041a97cf2564b78e56d84768f4e78788e93 /CMakeLists.txt
parentf833001e3948c1088e09697c1b1820313e0d65e4 (diff)
downloadhdf5-055208b71c573be3d4b1047b840d4d8b255bc25e.zip
hdf5-055208b71c573be3d4b1047b840d4d8b255bc25e.tar.gz
hdf5-055208b71c573be3d4b1047b840d4d8b255bc25e.tar.bz2
Minor tweak to CMake preadwrite entry.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb9839b..85f701e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -486,7 +486,7 @@ endif ()
#-----------------------------------------------------------------------------
option (HDF5_ENABLE_PREADWRITE "Use pread/pwrite in sec2/log/core VFDs in place of read/write (when available)" ON)
mark_as_advanced (HDF5_ENABLE_PREADWRITE)
-if (HDF5_ENABLE_PREADWRITE AND ${HDF_PREFIX}_HAVE_PREAD AND ${HDF_PREFIX}_HAVE_PWRITE)
+if (HDF5_ENABLE_PREADWRITE AND H5_HAVE_PREAD AND H5_HAVE_PWRITE)
set (H5_HAVE_PREADWRITE 1)
endif ()