mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Protect declarations of lapack functions under CERES_NO_LAPACK
If Ceres is compiled without a LAPACK implementation, there is no need to declare these function signatures. Thanks to David Sinuela for reporting this. Change-Id: I048d1f9d38cef55368d33e74d363cd39f425dbf4
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "ceres/linear_solver.h"
|
||||
#include "glog/logging.h"
|
||||
|
||||
#ifndef CERES_NO_LAPACK
|
||||
// C interface to the LAPACK Cholesky factorization and triangular solve.
|
||||
extern "C" void dpotrf_(char* uplo,
|
||||
int* n,
|
||||
@@ -61,7 +62,7 @@ extern "C" void dgels_(char* uplo,
|
||||
double* work,
|
||||
int* lwork,
|
||||
int* info);
|
||||
|
||||
#endif
|
||||
|
||||
namespace ceres {
|
||||
namespace internal {
|
||||
|
||||
Reference in New Issue
Block a user