FindHDF5: correctly add lang to each component target name.

This commit is contained in:
Robert Maynard 2016-06-23 10:56:29 -04:00
parent d152ae123d
commit f30b0fec74
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
set(_suffix "-shared")
endif()
foreach(_lang ${HDF5_LANGUAGE_BINDINGS})
get_target_property(_lang_location ${HDF5_${_component}_TARGET}${_suffix} LOCATION)
get_target_property(_lang_location ${HDF5_${_lang}_TARGET}${_suffix} LOCATION)
if( _lang_location )
set(HDF5_${_lang}_LIBRARY ${_lang_location} CACHE PATH
"HDF5 ${_lang} library" )