Fixed link ordering and detection of HL libraries

This commit is contained in:
Guilhem Lavaux 2012-09-20 01:59:46 -04:00
parent c7d0974857
commit b2bf2cb042
3 changed files with 11 additions and 6 deletions

View file

@ -27,7 +27,10 @@ find_library(NETCDFCPP_LIBRARY NAMES netcdf_c++ netcdf_c++4)
find_library(GSL_LIBRARY gsl)
find_library(GSLCBLAS_LIBRARY gslcblas)
set(HDF5_FIND_COMPONENTS CXX)
set(HDF5_FIND_COMPONENTS HL CXX)
if(HDF5_ROOTDIR)
SET(ENV{HDF5_ROOT} ${HDF5_ROOTDIR})
endif(HDF5_ROOTDIR)
include(FindHDF5)