[VTK 9.0] Fails with hdf5-config.cmake
First error of many:
CMake Error at /mnt/d/qt2/scripts/buildsystems/vcpkg.cmake:250 (_add_library):
Target "exodusII" links to target "hdf5::hdf5-static" 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):
CMake/vtkModule.cmake:3328 (add_library)
ThirdParty/exodusII/vtkexodusII/CMakeLists.txt:300 (vtk_module_add_module)
Output of configure:
-- Found HDF5 at /mnt/d/qt2/installed/x64-linux/share/hdf5 via NO_MODULE. Now trying to extract locations etc.
-- Trying to get properties of target hdf5::hdf5-static
-- Found imported configurations: DEBUG;RELEASE
-- Start search through imported configurations in the following order: Debug;RELWITHDEBINFO;RELEASE;DEBUG;DEBUG
-- Selected imported configuration: RELEASE
-- Found HDF5: hdf5::hdf5-static (found version "1.10.5") found components: C HL
-- HDF5_DIR: /mnt/d/qt2/installed/x64-linux/share/hdf5
-- HDF5_DEFINITIONS:
-- HDF5_INCLUDE_DIRS: /mnt/d/qt2/installed/x64-linux/include
-- HDF5_LIBRARIES: hdf5::hdf5-static
-- HDF5_HL_LIBRARIES: hdf5::hdf5_hl-static
-- HDF5_C_DEFINITIONS:
-- HDF5_C_INCLUDE_DIR:
-- HDF5_C_INCLUDE_DIRS: /mnt/d/qt2/installed/x64-linux/include
-- HDF5_C_LIBRARY: /mnt/d/qt2/installed/x64-linux/lib/libhdf5.a
-- HDF5_C_LIBRARIES: hdf5::hdf5-static
-- HDF5_C_HL_LIBRARY: /mnt/d/qt2/installed/x64-linux/lib/libhdf5_hl.a
-- HDF5_C_HL_LIBRARIES: hdf5::hdf5_hl-static
Probably needs to add set_target_properties(hdf5::hdf5-(shared|static) PROPERTIES IMPORTED_GLOBAL TRUE)
and set_target_properties(hdf5::hdf5_hl-(shared|static) PROPERTIES IMPORTED_GLOBAL TRUE)