diff options
author | HÃ¥kon Strandenes <h.strandenes@km-turbulenz.no> | 2021-11-17 10:39:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-17 14:22:41 (GMT) |
commit | 86c697f49ace37b8161d775982c45ab1c787d745 (patch) | |
tree | 104be012add8cfc8ca3da9683945c4de88100aac /Modules/FindHDF5.cmake | |
parent | d2e10c4d8dd7dc32ae775a6382c5277308639271 (diff) | |
download | CMake-86c697f49ace37b8161d775982c45ab1c787d745.zip CMake-86c697f49ace37b8161d775982c45ab1c787d745.tar.gz CMake-86c697f49ace37b8161d775982c45ab1c787d745.tar.bz2 |
FindHDF5: Fix Fortran compiler interrogation without HL library
When the HDF5 HL library is not available, FindHDF5 with Fortran does
not work. The problem is because `cmake_hdf5_test.f90` tries to
"use h5lt" and "use h5ds", which comes from the HL library.
Then the basic compiler check fails completely.
The two "use" lines were added by commit 00405af0f1 (HDF5: Refactor the
use of compiler wrappers, 2016-04-04, v3.6.0-rc1~85^2) along with the
rest of the check. Remove them.
Fixes: #22890
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r-- | Modules/FindHDF5.cmake | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index ce62d06..6e07da5 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -319,8 +319,6 @@ function(_HDF5_test_regular_compiler_Fortran success is_parallel) file(WRITE ${test_file} "program hdf5_hello\n" " use hdf5\n" - " use h5lt\n" - " use h5ds\n" " integer error\n" " call h5open_f(error)\n" " call h5close_f(error)\n" |