Error when mpi is not selected after installing hdf5[parallel]
Hi guys,
I'm vcpkg maintainer.
Recently we received an issue about vtk build issues: https://github.com/microsoft/vcpkg/pull/24740.
The issue is: When you first install hdf5 including feature parallel, and use it as a dependency of vtk to install vtk that does not select mpi as a feature, an error will be reported:
-- VTK module debug building: VTK::hdf5 is being built
-- Checking for module 'mpi-c'
-- Package 'mpi-c', required by 'virtual:world', not found
-- Checking for module 'mpi-cxx'
-- Package 'mpi-cxx', required by 'virtual:world', not found
CMake Error at ThirdParty/hdf5/CMakeLists.txt:21 (message):
An external MPI-aware HDF5 requires that VTK be built with MPI support as
well.
In vcpkg and other package management, dependencies should be forward: if I select a feature in a downstream library, the upstream library should be asked to select the corresponding feature; not that if the upstream library enables a feature, the downstream library must be enabled a corresponding feature.
This has a disastrous effect on dependencies.
What do you guys think about? How can we "fix" this issue?
Thanks, Jack