opencv+hdf: depend on mpi when ^hdf5+mpi (#46244)
When OpenCV depends on HDF5+mpi, it needs to the MPI compilers available.
This commit is contained in:
parent
d5b8b0600a
commit
f0e51a35c7
@ -492,6 +492,7 @@ class Opencv(CMakePackage, CudaPackage):
|
|||||||
|
|
||||||
with when("+hdf"):
|
with when("+hdf"):
|
||||||
depends_on("hdf5")
|
depends_on("hdf5")
|
||||||
|
depends_on("mpi", when="^hdf5+mpi")
|
||||||
|
|
||||||
with when("+hfs"):
|
with when("+hfs"):
|
||||||
with when("+cuda"):
|
with when("+cuda"):
|
||||||
|
Loading…
Reference in New Issue
Block a user