mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix compilation error caused by missing suitesparse headers
Covariance implementation file used to unconditionally include SuiteSparseQR.hpp which caused compilation error in cases you don't have SuiteSuite installed to the system Moved the include to #ifdef block. Change-Id: I3a52c0f81711b2b70ae625fe80b758ecb0817cc6
This commit is contained in:
@@ -48,7 +48,10 @@
|
||||
#include "ceres/suitesparse.h"
|
||||
#include "ceres/wall_time.h"
|
||||
#include "glog/logging.h"
|
||||
#include "SuiteSparseQR.hpp"
|
||||
|
||||
#ifndef CERES_NO_SUITESPARSE
|
||||
# include "SuiteSparseQR.hpp"
|
||||
#endif
|
||||
|
||||
namespace ceres {
|
||||
namespace internal {
|
||||
|
||||
Reference in New Issue
Block a user