Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

casadi: new recipe #22468

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
casadi: unvendor CSparse
valgur committed Nov 13, 2024

Verified

This commit was signed with the committer’s verified signature.
jalaziz Jameel Al-Aziz
commit 9ca6a614cd0492f0774276aa39749f058708cd70
5 changes: 4 additions & 1 deletion recipes/casadi/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -146,6 +146,8 @@ def requirements(self):
self.requires("coin-utils/2.11.11")
if self.options.with_spral:
self.requires("metis/5.2.1")
if self.options.with_csparse:
self.requires("suitesparse-cxsparse/4.4.1")

# FIXME: SUNDIALS v5+ available from CCI is not compatible
# CasADi vendors v2.6.1
@@ -231,7 +233,6 @@ def generate(self):
tc.variables["WITH_BUILD_ALPAQA"] = self.options.with_alpaqa
tc.variables["WITH_BUILD_BLASFEO"] = self.options.with_blasfeo
tc.variables["WITH_BUILD_BONMIN"] = self.options.with_bonmin
tc.variables["WITH_BUILD_CSPARSE"] = self.options.with_csparse
tc.variables["WITH_BUILD_DSDP"] = self.options.with_dsdp
tc.variables["WITH_BUILD_FATROP"] = self.options.with_fatrop
tc.variables["WITH_BUILD_HIGHS"] = self.options.with_highs
@@ -285,6 +286,8 @@ def generate(self):
deps.set_property("metis", "cmake_target_name", "metis::metis")
deps.set_property("osqp", "cmake_file_name", "OSQP")
deps.set_property("osqp", "cmake_target_name", "osqp::osqp")
deps.set_property("suitesparse-cxsparse", "cmake_file_name", "CSPARSE")
deps.set_property("suitesparse-cxsparse", "cmake_target_name", "cxsparse")
deps.set_property("tinyxml2", "cmake_file_name", "TINYXML")
deps.set_property("tinyxml2", "cmake_target_name", "tinyxml2::tinyxml2")
deps.generate()