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:
Sameer Agarwal
2019-08-05 07:27:10 -07:00
parent 71d638ef32
commit 573046d7f7
+2 -1
View File
@@ -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 {