summaryrefslogtreecommitdiffstats
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-06-23 14:56:29 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2016-06-23 14:56:29 (GMT)
commitf30b0fec749710e7eec68ddd148215609a5c01f9 (patch)
treeadb8778cf2263e282344193713e213150460c218 /Modules/FindHDF5.cmake
parentd152ae123d1a3df456fe24f2e1a06d97083ad2d2 (diff)
downloadCMake-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.cmake2
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" )