diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2016-06-24 19:28:23 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2016-06-24 19:28:23 (GMT) |
commit | 234deec2ea265f130a220547bcbc697bacbb25c6 (patch) | |
tree | c10bd8d0f960e5d0b5222442cbc8252ab623b5fe /Modules/FindHDF5.cmake | |
parent | 963b576fd2605f25ced8790fc17f5baa6ecee761 (diff) | |
download | CMake-234deec2ea265f130a220547bcbc697bacbb25c6.zip CMake-234deec2ea265f130a220547bcbc697bacbb25c6.tar.gz CMake-234deec2ea265f130a220547bcbc697bacbb25c6.tar.bz2 |
FindHDF5: create all the *_LIBRARIES when using hdf5-config.cmake
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r-- | Modules/FindHDF5.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
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) |