summaryrefslogtreecommitdiff
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorSeth R Johnson <johnsonsr@ornl.gov>2020-08-08 10:50:19 -0400
committerBrad King <brad.king@kitware.com>2020-08-10 11:53:58 -0400
commite038107ee779dc2196b8cd9aaa9489cc2b25a2eb (patch)
tree7b3d807a30332511055d1485e406f98d2df23b42 /Modules/FindHDF5.cmake
parent63a65baf4c343c73b2142078ef0045d3711dea1d (diff)
downloadcmake-e038107ee779dc2196b8cd9aaa9489cc2b25a2eb.tar.gz
FindHDF5: fix compiler detection when HL is disabled
A valid HDF5 installation with the "high level" extensions not configured will *fail* to be correctly detected by CMake since commit d9e39f3f89 (FindHDF5: check that compiler wrapper can compile a minimal program, 2020-02-10, v3.18.0-rc1~744^2~1): ``` /.../hdf5/cmake_hdf5_test.c:2:10: fatal error: 'hdf5_hl.h' file not found ``` This does not stop the configuration but does prevent flags and libraries from being recognized.
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 60a313d737..c9d15984d6 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -208,7 +208,6 @@ function(_HDF5_test_regular_compiler_C success version is_parallel)
set(test_file ${scratch_directory}/cmake_hdf5_test.c)
file(WRITE ${test_file}
"#include <hdf5.h>\n"
- "#include <hdf5_hl.h>\n"
"const char* info_ver = \"INFO\" \":\" H5_VERSION;\n"
"#ifdef H5_HAVE_PARALLEL\n"
"const char* info_parallel = \"INFO\" \":\" \"PARALLEL\";\n"