Skip to content

Commit f194e13

Browse files
medcoupling: refactor variants dependencies
Co-authored-by: Massimiliano Culpo <[email protected]>
1 parent ca70b47 commit f194e13

File tree

1 file changed

+2
-4
lines changed
  • repos/spack_repo/builtin/packages/salome_medcoupling

1 file changed

+2
-4
lines changed

repos/spack_repo/builtin/packages/salome_medcoupling/package.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ def url_for_version(self, version):
4444
variant("mpi", default=False, description="Enable MPI")
4545
variant("int64", default=False, description="Use 64 bits indices")
4646
variant("partitioner", default=False, description="Enable partitioner")
47-
variant("metis", default=False, description="Enable Metis")
48-
variant("scotch", default=False, description="Enable Scotch")
47+
variant("metis", default=False, when="+partitioner", description="Enable Metis")
48+
variant("scotch", default=False, when="+partitioner", description="Enable Scotch")
4949

50-
conflicts("~partitioner", when="+metis")
51-
conflicts("~partitioner", when="+scotch")
5250

5351
depends_on("c", type="build")
5452
depends_on("cxx", type="build")

0 commit comments

Comments
 (0)