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
diff --git a/internal/ceres/lapack.cc b/internal/ceres/lapack.cc
index 6fc23f4..37efbcd 100644
--- a/internal/ceres/lapack.cc
+++ b/internal/ceres/lapack.cc
@@ -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 @@
double* work,
int* lwork,
int* info);
-
+#endif
namespace ceres {
namespace internal {