mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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
This commit is contained in:
committed by
Brad King
parent
d2e10c4d8d
commit
86c697f49a
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user