[cmake-developers] [PATCH] Fix a few issues in FindHDF5 module

Tim Gallagher tim.gallagher at gatech.edu
Wed Sep 2 11:35:21 EDT 2015


Good catch! The version I patched against didn't have the HDF5_Fortran_HL_LIBRARY_NAMES_INIT variable at the time. There was only the HDF5_Fortran_LIBRARY_NAMES_INIT variable. 

I'm not sure which version of the code my original patch was against after this long. However, since I submitted my ticket in July of 2011, Will committed support for the HL libraries in August of 2011 with commit http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ad218e4 , which added the HDF5_Fortran_HL_LIBRARY_NAMES_INIT variable. Perhaps that commit was intended to reference/fix my ticket?

At any rate, since what I submitted wouldn't apply against the current version, it looks like this work supersedes that patch. 

Tim

----- Original Message -----
From: "Brad King" <brad.king at kitware.com>
To: "tim gallagher" <tim.gallagher at gatech.edu>
Cc: cmake-developers at cmake.org, "Paul Romano" <paul.k.romano at gmail.com>
Sent: Wednesday, September 2, 2015 11:16:34 AM
Subject: Re: [cmake-developers] [PATCH] Fix a few issues in FindHDF5 module

On 09/02/2015 11:07 AM, Tim Gallagher wrote:
> It looks like the 2nd commit you linked to does the same thing as
> my patch (add hdf5hl_fortran to the Fortran library list). 

Not quite.  It is:

> -    set( HDF5_Fortran_HL_LIBRARY_NAMES_INIT hdf5hl_fortran
> +    set( HDF5_Fortran_HL_LIBRARY_NAMES_INIT hdf5hl_fortran hdf5_hl

One can see hdf5hl_fortran was already in that list.

Your patch was:

> -    set( HDF5_Fortran_LIBRARY_NAMES_INIT hdf5_fortran ${HDF5_C_LIBRARY_NAMES_INIT} )
> +    set( HDF5_Fortran_LIBRARY_NAMES_INIT hdf5_fortran hdf5hl_fortran ${HDF5_C_LIBRARY_NAMES_INIT} )

which adds it to a different list, though perhaps the wrong one
since it is not for the _HL component.

-Brad



More information about the cmake-developers mailing list