mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Fix #ifdef guards around METIS usage in EigenSparse backend and tests
Change-Id: Idd1e0b7b1b2df2d402431b107dee0fa8e0fd58f5
This commit is contained in:
@@ -213,6 +213,10 @@ bool TrustRegionOptionsAreValid(const Solver::Options& options, string* error) {
|
||||
*error = StringPrintf(
|
||||
"Can't use NESDIS with SUITE_SPARSE because SuiteSparse was "
|
||||
"compiled without support for Metis.");
|
||||
} else if (options.sparse_linear_algebra_library_type == EIGEN_SPARSE) {
|
||||
*error = StringPrintf(
|
||||
"Can't use NESDIS with EIGEN_SPARSE because Ceres was "
|
||||
"compiled without support for Metis.");
|
||||
} else {
|
||||
*error = StringPrintf(
|
||||
"Can't use NESDIS with "
|
||||
|
||||
Reference in New Issue
Block a user