concretizer: added logic for preferred variants

If preferred variants are present, they'll
set the default value of a variant. Otherwise
the default value is what is encoded
in package.py
This commit is contained in:
Massimiliano Culpo
2020-10-12 19:13:20 +02:00
committed by Todd Gamblin
parent 81c7cf45e1
commit d4b83daa48
4 changed files with 63 additions and 25 deletions

View File

@@ -42,16 +42,16 @@ class Plasma(CMakePackage):
depends_on("blas")
depends_on("lapack")
conflicts("atlas") # does not have LAPACKE interface
conflicts("^atlas") # does not have LAPACKE interface
# missing LAPACKE features and/or CBLAS headers
conflicts("netlib-lapack@:3.5.999")
conflicts("^netlib-lapack@:3.5.999")
# clashes with OpenBLAS declarations and has a problem compiling on its own
conflicts("cblas")
conflicts("^cblas")
conflicts("openblas-with-lapack") # incomplete LAPACK implementation
conflicts("veclibfort")
conflicts("^openblas-with-lapack") # incomplete LAPACK implementation
conflicts("^veclibfort")
# only GCC 4.9+ and higher have sufficient support for OpenMP 4+ tasks+deps
conflicts("%gcc@:4.8.99", when='@:17.1')