summaryrefslogtreecommitdiffstats
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-04-04 12:10:49 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-04-05 15:56:50 (GMT)
commitff84a80b461c91d35cbb320d3bede49edb180632 (patch)
treeea5ea0861df9527936adc1bdb68a64ade932f01b /Modules/FindHDF5.cmake
parent26af5908ec3be728b8ae487926b542be63e11af7 (diff)
downloadCMake-ff84a80b461c91d35cbb320d3bede49edb180632.zip
CMake-ff84a80b461c91d35cbb320d3bede49edb180632.tar.gz
CMake-ff84a80b461c91d35cbb320d3bede49edb180632.tar.bz2
FindHDF5: search for the new Fortran HL library name
HDF5 1.10.6 renamed this library to match the other language binding library names. Fixes: #20205
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 16bf279..ec5ebdd 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -797,7 +797,7 @@ if( NOT HDF5_FOUND )
set(HDF5_CXX_HL_LIBRARY_NAMES hdf5_hl_cpp ${HDF5_C_HL_LIBRARY_NAMES} ${HDF5_CXX_LIBRARY_NAMES})
set(HDF5_Fortran_LIBRARY_NAMES hdf5_fortran ${HDF5_C_LIBRARY_NAMES})
- set(HDF5_Fortran_HL_LIBRARY_NAMES hdf5hl_fortran ${HDF5_C_HL_LIBRARY_NAMES} ${HDF5_Fortran_LIBRARY_NAMES})
+ set(HDF5_Fortran_HL_LIBRARY_NAMES hdf5_hl_fortran hdf5hl_fortran ${HDF5_C_HL_LIBRARY_NAMES} ${HDF5_Fortran_LIBRARY_NAMES})
# suffixes as seen on Linux, MSYS2, ...
set(_lib_suffixes hdf5)