diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2016-06-23 14:56:29 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2016-06-23 14:56:29 (GMT) |
commit | f30b0fec749710e7eec68ddd148215609a5c01f9 (patch) | |
tree | adb8778cf2263e282344193713e213150460c218 /Modules/FindHDF5.cmake | |
parent | d152ae123d1a3df456fe24f2e1a06d97083ad2d2 (diff) | |
download | CMake-f30b0fec749710e7eec68ddd148215609a5c01f9.zip CMake-f30b0fec749710e7eec68ddd148215609a5c01f9.tar.gz CMake-f30b0fec749710e7eec68ddd148215609a5c01f9.tar.bz2 |
FindHDF5: correctly add lang to each component target name.
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r-- | Modules/FindHDF5.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index bc0d50b..cc05f1c 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -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" ) |