IONetCDF" links to target "hdf5::hdf5_hl-shared" but the target was not found
On current master, for the win32 target (using MinGW) the hdf5::hdf5_hl-shared target is reported missing when using VTK_MODULE_USE_EXTERNAL_VTK_netcdf=ON:
-- Found HDF5: /usr/i686-w64-mingw32/lib/libhdf5.dll.a (found version "1.10.5") found components: C HL
...
-- Configuring done
...
CMake Error at CMake/vtkModule.cmake:2968 (add_library):
Target "IONetCDF" links to target "hdf5::hdf5_hl-shared" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
IO/NetCDF/CMakeLists.txt:10 (vtk_module_add_module)
CMake Error at CMake/vtkModule.cmake:2968 (add_library):
Target "IONetCDF" links to target "hdf5::hdf5-shared" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
IO/NetCDF/CMakeLists.txt:10 (vtk_module_add_module)
CMake Error at CMake/vtkModule.cmake:2968 (add_library):
Target "exodusII" links to target "hdf5::hdf5_hl-shared" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
ThirdParty/exodusII/vtkexodusII/CMakeLists.txt:300 (vtk_module_add_module)
...
If I remove "find_package(netCDF CONFIG QUIET)" in FindNetCDF.cmake the error goes away, ie when using the non-config detection (netcdf is installed with cmake).
If I remove
Edited by Julien Schueller