FindHDF5: cache the correct path to the high level libraries
This commit is contained in:
parent
9f2728cef3
commit
963b576fd2
|
@ -384,10 +384,10 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
|
||||||
endif()
|
endif()
|
||||||
if(FIND_HL)
|
if(FIND_HL)
|
||||||
get_target_property(_lang_hl_location ${HDF5_${_lang}_HL_TARGET}${_suffix} LOCATION)
|
get_target_property(_lang_hl_location ${HDF5_${_lang}_HL_TARGET}${_suffix} LOCATION)
|
||||||
if( _lang_location )
|
if( _lang_hl_location )
|
||||||
set(HDF5_${_lang}_HL_LIBRARY ${_lang_location} CACHE PATH
|
set(HDF5_${_lang}_HL_LIBRARY ${_lang_hl_location} CACHE PATH
|
||||||
"HDF5 ${_lang} HL library" )
|
"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})
|
list(APPEND HDF5_HL_LIBRARIES ${HDF5_${_lang}_HL_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue