Page MenuHomePhabricator

HDF5 error in external projects
Closed, ResolvedPublic

Description

Plattform: Windows

Problem: External projects (e.g. MatchPoint) that use CMake's find_package to find HDF5 run into problems when build debug and release. The second build generates an CMake error:

CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindHDF5.cmake:450 (get_target_property):

get_target_property called with incorrect number of arguments

Remark. It seems to be fixed when using CMake >3.10. There where several fixes in CMake's find HDF5.

Event Timeline

So maybe we have to raise the CMake requirement to CMake 3.10 < *sigh*.

If it is really just the FindHDF5.cmake file, there's also the option to copy the latest version into our own CMake folder, as long as it uses no brand new CMake features (which should be rarely the case).

@floca Can you copy the following file into MITK's CMake folder and see if it resolves this issue, please?

kislinsk triaged this task as Normal priority.Mar 19 2018, 11:19 AM

I'll test the findHDF5 file

Great, the fix seems to work. I will add the patch into the master.

Fixed Issue. Used CMake 3.10 find file.