FindHDF5: cache the correct path to the high level libraries

This commit is contained in:
Robert Maynard 2016-06-24 15:26:22 -04:00
parent 9f2728cef3
commit 963b576fd2
1 changed files with 3 additions and 3 deletions

View File

@ -384,10 +384,10 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
endif()
if(FIND_HL)
get_target_property(_lang_hl_location ${HDF5_${_lang}_HL_TARGET}${_suffix} LOCATION)
if( _lang_location )
set(HDF5_${_lang}_HL_LIBRARY ${_lang_location} CACHE PATH
if( _lang_hl_location )
set(HDF5_${_lang}_HL_LIBRARY ${_lang_hl_location} CACHE PATH
"HDF5 ${_lang} HL library" )
mark_as_advanced(HDF5_${_lang}_LIBRARY)
mark_as_advanced(HDF5_${_lang}_HL_LIBRARY)
list(APPEND HDF5_HL_LIBRARIES ${HDF5_${_lang}_HL_LIBRARY})
endif()
endif()