From c00f7826590291c013904b7a5dd90cd1f22a4bba Mon Sep 17 00:00:00 2001
From: jvallve <jvallve@iri.upc.edu>
Date: Fri, 30 Jun 2017 12:50:21 +0200
Subject: [PATCH] VERSION 1.13 change again to SPARSE_QR

---
 src/ceres_wrapper/ceres_manager.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/ceres_wrapper/ceres_manager.cpp b/src/ceres_wrapper/ceres_manager.cpp
index c5d42bf9a..c930225bf 100644
--- a/src/ceres_wrapper/ceres_manager.cpp
+++ b/src/ceres_wrapper/ceres_manager.cpp
@@ -11,10 +11,13 @@ CeresManager::CeresManager(ProblemPtr _wolf_problem, const ceres::Solver::Option
     use_wolf_auto_diff_(_use_wolf_auto_diff)
 {
     ceres::Covariance::Options covariance_options;
-    #if CERES_VERSION_MINOR >= 10
+    #if CERES_VERSION_MINOR >= 13
     covariance_options.algorithm_type = ceres::SPARSE_QR;//ceres::DENSE_SVD;
-    #else
+    covariance_options.sparse_linear_algebra_library_type = ceres::SUITE_SPARSE;
+    #elif CERES_VERSION_MINOR >= 10
     covariance_options.algorithm_type = ceres::SUITE_SPARSE_QR;//ceres::DENSE_SVD;
+    #else
+    covariance_options.algorithm_type = ceres::SPARSE_QR;//ceres::DENSE_SVD;
     #endif
     covariance_options.num_threads = 8;
     covariance_options.apply_loss_function = false;
-- 
GitLab