resolve: Add LUSOL variant and fix CMake variable definition. (#44790)

* resolve: Add LUSOL variant and fix CMake variable definition.
* Update variant with correct version constraints.
This commit is contained in:
Cameron Rutherford 2024-10-08 19:45:41 -04:00 committed by GitHub
parent 5959be577f
commit a0611650e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,12 @@ class Resolve(CMakePackage, CudaPackage, ROCmPackage):
depends_on("cxx", type="build") # generated
variant("klu", default=True, description="Use KLU, AMD and COLAMD Libraries from SuiteSparse")
variant(
"lusol",
default=True,
when="@develop:",
description="Build the LUSOL Library. Requires fortran",
)
depends_on("suite-sparse", when="+klu")
@ -46,7 +52,11 @@ def cmake_args(self):
spec = self.spec
args.extend(
[self.define("RESOLVE_USE_KLU", "klu"), self.define("RESOLVE_TEST_WITH_BSUB", False)]
[
self.define_from_variant("RESOLVE_USE_KLU", "klu"),
self.define_from_variant("RESOLVE_USE_LUSOL", "lusol"),
self.define("RESOLVE_TEST_WITH_BSUB", False),
]
)
if "+cuda" in spec: