diff --git a/CMake/mitkFunctionGetLibrarySearchPaths.cmake b/CMake/mitkFunctionGetLibrarySearchPaths.cmake index 54b5f12..6208c67 100644 --- a/CMake/mitkFunctionGetLibrarySearchPaths.cmake +++ b/CMake/mitkFunctionGetLibrarySearchPaths.cmake @@ -44,7 +44,7 @@ function(mitkFunctionGetLibrarySearchPaths search_path intermediate_dir) if(MITK_USE_HDF5) FIND_PACKAGE(HDF5 COMPONENTS C HL NO_MODULE REQUIRED shared) - get_target_property(_location hdf5-shared LOCATION) + get_target_property(_location hdf5::hdf5-shared LOCATION) get_filename_component(_location ${_location} PATH) list(APPEND _additional_paths ${_location}) diff --git a/CMakeExternals/HDF5.cmake b/CMakeExternals/HDF5.cmake index 1c94385..f83f17b 100644 --- a/CMakeExternals/HDF5.cmake +++ b/CMakeExternals/HDF5.cmake @@ -27,8 +27,8 @@ if(MITK_USE_HDF5) # bad :( This would be fixed by using an external HDF-Installation with ITK/VTK ExternalProject_Add(${proj} - URL ${MITK_THIRDPARTY_DOWNLOAD_PREFIX_URL}/hdf5-1.8.17.tar.gz - URL_MD5 7d572f8f3b798a628b8245af0391a0ca + URL https://support.hdfgroup.org/ftp/HDF5/current18/src/hdf5-1.8.19.tar + URL_HASH SHA1=2ef3c50d69a9e5765c745f1b5b46d231470b0b8e CMAKE_GENERATOR ${gen} CMAKE_ARGS ${ep_common_args}