summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Romano <paul.k.romano@gmail.com>2015-09-01 02:20:25 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-01 14:56:51 (GMT)
commitf7f73df1b3e58f55178f899352b6ffa9b4b14cb6 (patch)
treea2521307416b70b37219ca157d127f0bd6aa53de
parent19e7db07e36b03e7d57b80c8f9732347116d8c5d (diff)
downloadCMake-f7f73df1b3e58f55178f899352b6ffa9b4b14cb6.zip
CMake-f7f73df1b3e58f55178f899352b6ffa9b4b14cb6.tar.gz
CMake-f7f73df1b3e58f55178f899352b6ffa9b4b14cb6.tar.bz2
FindHDF5: Add hdf5_hl to list of libraries to search for Fortran_HL
When the Fortran_HL component is specified, the hdf5_hl library is not included in HDF5_LIBRARIES which causes a bunch of undefined references at link time. This commit adds hdf5_hl to the list of libraries to search for when the Fortran_HL component is specified.
-rw-r--r--Modules/FindHDF5.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 47d85f7..a449132 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -234,7 +234,7 @@ if( NOT HDF5_FOUND )
set( HDF5_CXX_LIBRARY_NAMES_INIT hdf5_cpp ${HDF5_C_LIBRARY_NAMES_INIT} )
set( HDF5_Fortran_LIBRARY_NAMES_INIT hdf5_fortran
${HDF5_C_LIBRARY_NAMES_INIT} )
- set( HDF5_Fortran_HL_LIBRARY_NAMES_INIT hdf5hl_fortran
+ set( HDF5_Fortran_HL_LIBRARY_NAMES_INIT hdf5hl_fortran hdf5_hl
${HDF5_Fortran_LIBRARY_NAMES_INIT} )
foreach( LANGUAGE ${HDF5_LANGUAGE_BINDINGS} )