Skip to content

CMake dependency error #45

@untereiner

Description

@untereiner

Hello,

I am trying to compile.
I have compiled fesapi dev branc with it's own hdf5 dependency
I have compiled paraview with
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPARAVIEW_QT_VERSION=5 -DVTK_QT_VERSION:STRING=5 -DVTK_MODULE_USE_EXTERNAL_VTK_zlib:BOOL=ON -DVTK_MODULE_USE_EXTERNAL_VTK_hdf5:BOOL=ON -DHDF5_DIR:PATH=/path/to/f2i-consulting/fesapi-superbuild/install/release-gcc/hdf5/share/cmake/hdf5 ..
Then for fespp:
cmake -DFESAPI_ROOT:PATH=/path/to/f2i-consulting/fesapi-superbuild/install/release-gcc/fesapi -DParaView_DIR:PATH=/path/to/f2i-consulting/paraview/build/lib/cmake/paraview-5.12/ ..

I have an error at configure step:

CMake Error at /path/to/f2i-consulting/paraview/build/lib/cmake/paraview-5.12/vtk/VTK-targets.cmake:810 (set_target_properties):
  The link interface of target "VTK::hdf5" contains:

    hdf5::hdf5

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
 /path/to/f2i-consulting/paraview/build/lib/cmake/paraview-5.12/vtk/vtk-config.cmake:145 (include)
 /path/to/f2i-consulting/paraview/build/lib/cmake/paraview-5.12/paraview-config.cmake:77 (find_package)
  CMakeLists.txt:32 (find_package)

I think it might be related to F2I-Consulting/fesapi#344
Paraview (vtkHDF5) is looking for hdf5::hdf5 but fesapi is advertising HDF5::HDF5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions