summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-06-23 10:56:29 -0400
committerRobert Maynard <robert.maynard@kitware.com>2016-06-23 10:56:29 -0400
commitf30b0fec749710e7eec68ddd148215609a5c01f9 (patch)
treeadb8778cf2263e282344193713e213150460c218
parentd152ae123d1a3df456fe24f2e1a06d97083ad2d2 (diff)
downloadcmake-f30b0fec749710e7eec68ddd148215609a5c01f9.tar.gz
FindHDF5: correctly add lang to each component target name.
-rw-r--r--Modules/FindHDF5.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index bc0d50beff..cc05f1c54e 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" )