ICB-DCM / parPE

Parameter estimation for dynamical models using high-performance computing, batch and mini-batch optimizers, and dynamic load balancing.
MIT License
20 stars 4 forks source link

Fix find_package / find_dependency issues with different SuiteSparse versions from amici and ceres #391

Open dweindl opened 1 month ago

dweindl commented 1 month ago

With the Ubuntu libceres-dev package (built with SuiteSparse support) and with AMICI>=0.26.2 we have the problem, that both amici and ceres are using CMake's find_package to find SuiteSparse, but both require different versions which doesn't work at the moment. (That's why CI builds have ceres disabled in #388) . Ceres builds without SuiteSparse support work fine. We probably need to temporarily adjust CMAKE_PREFIX_PATH and clear SuiteSparse_FOUND or KLU_FOUND (or SuiteSparse_DIR, ...) after the first find_package/find_dependency call.