Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 832
    • Issues 832
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 237
    • Merge requests 237
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #17878
Closed
Open
Issue created May 04, 2020 by Alexander Neumann@Neumann-AContributor

[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)

Assignee
Assign to
Time tracking