summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Deconinck <willem.deconinck@ecmwf.int>2019-10-15 10:37:12 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-15 13:47:58 (GMT)
commit08f4b5dcf9243754a3b6f88fc61d0c99578b08f6 (patch)
tree9a16db3c5bfc218050f8602be37dac33e9066e6a
parentcd6f0ef35a9a7669e95219684f3a8398932a1b4d (diff)
downloadCMake-08f4b5dcf9243754a3b6f88fc61d0c99578b08f6.zip
CMake-08f4b5dcf9243754a3b6f88fc61d0c99578b08f6.tar.gz
CMake-08f4b5dcf9243754a3b6f88fc61d0c99578b08f6.tar.bz2
FindHDF5: Append hdf5 to hdf5_hl to avoid undefined references
-rw-r--r--Modules/FindHDF5.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 1823ea7..b488418 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -761,7 +761,7 @@ mark_as_advanced( HDF5_DIFF_EXECUTABLE )
if( NOT HDF5_FOUND )
# seed the initial lists of libraries to find with items we know we need
set(HDF5_C_LIBRARY_NAMES hdf5)
- set(HDF5_C_HL_LIBRARY_NAMES hdf5_hl)
+ set(HDF5_C_HL_LIBRARY_NAMES hdf5_hl ${HDF5_C_LIBRARY_NAMES} )
set(HDF5_CXX_LIBRARY_NAMES hdf5_cpp ${HDF5_C_LIBRARY_NAMES})
set(HDF5_CXX_HL_LIBRARY_NAMES hdf5_hl_cpp ${HDF5_C_HL_LIBRARY_NAMES} ${HDF5_CXX_LIBRARY_NAMES})