Skip to content

vtkModule: add a function to determine optional dep availability

VTK's exporting logic always makes all targets available. This ends up confusing optional dependency logic because its transitive imported targets may not be satisfied even if the target exists when it comes from an external package.

Instead, perform the following checks:

  • require the target to exist
  • if the target's detected package matches the current package, assume that it is fine (via module dependency resolution)
  • otherwise, check if a related _FOUND variable for the module using the package name and the target name as a component is available and set.

See: #19266 (closed)


Cc: @Neumann-A @danlipsa
Backport: paraview/release

Merge request reports