summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-06-24 19:26:22 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2016-06-24 19:26:22 (GMT)
commit963b576fd2605f25ced8790fc17f5baa6ecee761 (patch)
tree2457338de096125d20ed460cbbc37552c6f179d9
parent9f2728cef3763dff93a43b933a10f32eb73f7c6b (diff)
downloadCMake-963b576fd2605f25ced8790fc17f5baa6ecee761.zip
CMake-963b576fd2605f25ced8790fc17f5baa6ecee761.tar.gz
CMake-963b576fd2605f25ced8790fc17f5baa6ecee761.tar.bz2
FindHDF5: cache the correct path to the high level libraries
-rw-r--r--Modules/FindHDF5.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 7c1581d..ce3b6d0 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -384,10 +384,10 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT)
endif()
if(FIND_HL)
get_target_property(_lang_hl_location ${HDF5_${_lang}_HL_TARGET}${_suffix} LOCATION)
- if( _lang_location )
- set(HDF5_${_lang}_HL_LIBRARY ${_lang_location} CACHE PATH
+ if( _lang_hl_location )
+ set(HDF5_${_lang}_HL_LIBRARY ${_lang_hl_location} CACHE PATH
"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})
endif()
endif()