parent
9be7f2328f
commit
b3d0f19fe7
@ -52,6 +52,10 @@ class Spglib(CMakePackage):
|
|||||||
|
|
||||||
variant("openmp", default=True, description="Build with OpenMP support", when="@1.16.2:")
|
variant("openmp", default=True, description="Build with OpenMP support", when="@1.16.2:")
|
||||||
variant("fortran", default=True, description="Build Fortran interface", when="@1.16.4:")
|
variant("fortran", default=True, description="Build Fortran interface", when="@1.16.4:")
|
||||||
|
variant("tests", default=False, description="Build with tests", when="@2.1.0:")
|
||||||
|
|
||||||
|
depends_on("cmake@3.15:", type="build", when="@2.1.0:")
|
||||||
|
depends_on("cmake@3.24:", type="build", when="+tests")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def libs(self):
|
def libs(self):
|
||||||
@ -62,4 +66,5 @@ def cmake_args(self):
|
|||||||
return [
|
return [
|
||||||
self.define_from_variant(pfx + "USE_OMP", "openmp"),
|
self.define_from_variant(pfx + "USE_OMP", "openmp"),
|
||||||
self.define_from_variant(pfx + "WITH_Fortran", "fortran"),
|
self.define_from_variant(pfx + "WITH_Fortran", "fortran"),
|
||||||
|
self.define_from_variant(pfx + "WITH_TESTS", "tests"),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user