FS#68810 - [CMake] 3.19.1-1 breaks find_package(HDF5 COMPONENTS Fortran HL)

Attached to Project: Arch Linux
Opened by Adrien (amorison) - Tuesday, 01 December 2020, 14:22 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 02 December 2020, 17:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Since CMake 3.19.1-1, looking for both the Fortran and HL components of HDF5 leads to the following error message

-- Found HDF5: /usr/lib/libhdf5_fortran.so;/usr/lib/libhdf5.so;/usr/lib/libsz.so;/usr/lib/libz.so;/usr/lib/libdl.so;/usr/lib/libm.so (found version "1.12.0") found components: Fortran HL
CMake Error at /usr/share/cmake-3.19/Modules/FindHDF5.cmake:1086 (message):
HDF5 was found, but a different variable was set which contains its
location.
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)

------

The minimal CMakeLists.txt reproducing this issue has the following content:

cmake_minimum_required(VERSION 3.19)
project(Foo Fortran)
find_package(HDF5 COMPONENTS Fortran HL)


Additional info:
* package version(s) CMake 3.19.1-1 and hdf5 (or hdf5-openmpi) 1.12.0-2
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 02 December 2020, 17:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  cmake 3.19.1-2
Comment by Antonio Rojas (arojas) - Tuesday, 01 December 2020, 17:18 GMT
This is not a packaging issue, please report it upstream
Comment by Adrien (amorison) - Tuesday, 01 December 2020, 18:12 GMT
Here is the upstream issue for reference https://gitlab.kitware.com/cmake/cmake/-/issues/21537

Loading...