From 234deec2ea265f130a220547bcbc697bacbb25c6 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 24 Jun 2016 15:28:23 -0400 Subject: FindHDF5: create all the *_LIBRARIES when using hdf5-config.cmake --- Modules/FindHDF5.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index ce3b6d0..b074f63 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -381,6 +381,7 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT) "HDF5 ${_lang} library" ) mark_as_advanced(HDF5_${_lang}_LIBRARY) list(APPEND HDF5_LIBRARIES ${HDF5_${_lang}_LIBRARY}) + set(HDF5_${_lang}_LIBRARIES ${HDF5_${_lang}_LIBRARY}) endif() if(FIND_HL) get_target_property(_lang_hl_location ${HDF5_${_lang}_HL_TARGET}${_suffix} LOCATION) @@ -389,6 +390,7 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT) "HDF5 ${_lang} HL library" ) mark_as_advanced(HDF5_${_lang}_HL_LIBRARY) list(APPEND HDF5_HL_LIBRARIES ${HDF5_${_lang}_HL_LIBRARY}) + set(HDF5_${_lang}_HL_LIBRARIES ${HDF5_${_lang}_HL_LIBRARY}) endif() endif() endforeach() @@ -424,6 +426,8 @@ if(NOT HDF5_FOUND AND NOT HDF5_ROOT) set(HDF5_${__lang}_DEFINITIONS) set(HDF5_${__lang}_INCLUDE_DIRS) set(HDF5_${__lang}_LIBRARIES) + set(HDF5_${__lang}_HL_LIBRARIES) + mark_as_advanced(HDF5_${__lang}_COMPILER_EXECUTABLE_NO_INTERROGATE) mark_as_advanced(HDF5_${__lang}_DEFINITIONS) mark_as_advanced(HDF5_${__lang}_INCLUDE_DIRS) -- cgit v0.12