ceres-solver: adding version 2.2.0 (#40824)
* ceres-solver: adding version 2.2.0 * ceres-solver: adding suite-sparse dep
This commit is contained in:
parent
a8285f0eec
commit
6af45230b4
1 changed files with 17 additions and 2 deletions
|
@ -17,6 +17,7 @@ class CeresSolver(CMakePackage):
|
|||
homepage = "http://ceres-solver.org"
|
||||
url = "http://ceres-solver.org/ceres-solver-1.12.0.tar.gz"
|
||||
|
||||
version("2.2.0", sha256="48b2302a7986ece172898477c3bcd6deb8fb5cf19b3327bc49969aad4cede82d")
|
||||
version("2.0.0", sha256="10298a1d75ca884aa0507d1abb0e0f04800a92871cd400d4c361b56a777a7603")
|
||||
version("1.14.0", sha256="4744005fc3b902fed886ea418df70690caa8e2ff6b5a90f3dd88a3d291ef8e8e")
|
||||
version("1.12.0", sha256="745bfed55111e086954126b748eb9efe20e30be5b825c6dec3c525cf20afc895")
|
||||
|
@ -25,12 +26,26 @@ class CeresSolver(CMakePackage):
|
|||
variant("shared", default=True, description="Build shared libraries")
|
||||
variant("examples", default=False, description="Build examples")
|
||||
|
||||
depends_on("cmake@2.8.0:", type="build", when="@1.12.0:1.14.0")
|
||||
depends_on("cmake@3.5:", type="build", when="@2.0.0")
|
||||
depends_on("cmake@3.16:3.27", type="build", when="@2.2.0")
|
||||
depends_on("eigen@3:")
|
||||
depends_on("eigen@3.3:", when="@2.0.0:")
|
||||
depends_on("lapack")
|
||||
depends_on("glog")
|
||||
depends_on("glog@0.3.5:")
|
||||
depends_on("suite-sparse", when="+suitesparse")
|
||||
|
||||
def cmake_args(self):
|
||||
args = ["-DCXSPARSE=OFF", "-DEIGENSPARSE=ON", "-DLAPACK=ON", "-DSCHUR_SPECIALIZATIONS=OFF"]
|
||||
args = []
|
||||
if self.spec.satisfies("@:2.0.0"):
|
||||
args.extend(
|
||||
[
|
||||
"-DCXSPARSE=OFF",
|
||||
"-DEIGENSPARSE=ON",
|
||||
"-DLAPACK=ON",
|
||||
"-DSCHUR_SPECIALIZATIONS=OFF",
|
||||
]
|
||||
)
|
||||
|
||||
if "+suitesparse" in self.spec:
|
||||
args.append("-DSUITESPARSE=ON")
|
||||
|
|
Loading…
Reference in a new issue