config.h.in 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. // Ceres Solver - A fast non-linear least squares minimizer
  2. // Copyright 2022 Google Inc. All rights reserved.
  3. // http://ceres-solver.org/
  4. //
  5. // Redistribution and use in source and binary forms, with or without
  6. // modification, are permitted provided that the following conditions are met:
  7. //
  8. // * Redistributions of source code must retain the above copyright notice,
  9. // this list of conditions and the following disclaimer.
  10. // * Redistributions in binary form must reproduce the above copyright notice,
  11. // this list of conditions and the following disclaimer in the documentation
  12. // and/or other materials provided with the distribution.
  13. // * Neither the name of Google Inc. nor the names of its contributors may be
  14. // used to endorse or promote products derived from this software without
  15. // specific prior written permission.
  16. //
  17. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  18. // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  19. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  20. // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  21. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  22. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  23. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  24. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  25. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  26. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  27. // POSSIBILITY OF SUCH DAMAGE.
  28. //
  29. // Author: alexs.mac@gmail.com (Alex Stewart)
  30. // Configuration options for Ceres.
  31. //
  32. // Do not edit this file, it was automatically configured by CMake when
  33. // Ceres was compiled with the relevant configuration for the machine
  34. // on which Ceres was compiled.
  35. //
  36. // Ceres Developers: All options should have the same name as their mapped
  37. // CMake options, in the preconfigured version of this file
  38. // all options should be enclosed in '@'.
  39. #ifndef CERES_PUBLIC_INTERNAL_CONFIG_H_
  40. #define CERES_PUBLIC_INTERNAL_CONFIG_H_
  41. // If defined, use the LGPL code in Eigen.
  42. @CERES_USE_EIGEN_SPARSE@
  43. // If defined, Ceres was compiled without LAPACK.
  44. @CERES_NO_LAPACK@
  45. // If defined, Ceres was compiled without SuiteSparse.
  46. @CERES_NO_SUITESPARSE@
  47. // If defined, Ceres was compiled without CUDA.
  48. @CERES_NO_CUDA@
  49. // If defined, Ceres was compiled without Apple's Accelerate framework solvers.
  50. @CERES_NO_ACCELERATE_SPARSE@
  51. #if defined(CERES_NO_SUITESPARSE) && \
  52. defined(CERES_NO_ACCELERATE_SPARSE) && \
  53. !defined(CERES_USE_EIGEN_SPARSE) // NOLINT
  54. // If defined Ceres was compiled without any sparse linear algebra support.
  55. #define CERES_NO_SPARSE
  56. #endif
  57. // If defined, Ceres was compiled without Schur specializations.
  58. @CERES_RESTRICT_SCHUR_SPECIALIZATION@
  59. // If defined, Ceres was compiled to use Eigen instead of hardcoded BLAS
  60. // routines.
  61. @CERES_NO_CUSTOM_BLAS@
  62. // If defined, Ceres was compiled with a version of SuiteSparse/CHOLMOD without
  63. // the Partition module (requires METIS).
  64. @CERES_NO_CHOLMOD_PARTITION@
  65. // If defined Ceres was compiled without support for METIS via Eigen.
  66. @CERES_NO_EIGEN_METIS@
  67. // If defined, Ceres was compiled with a version MSVC >= 2005 which
  68. // deprecated the standard POSIX names for bessel functions, replacing them
  69. // with underscore prefixed versions (e.g. j0() -> _j0()).
  70. @CERES_MSVC_USE_UNDERSCORE_PREFIXED_BESSEL_FUNCTIONS@
  71. // CERES_NO_SPARSE should be automatically defined by config.h if Ceres was
  72. // compiled without any sparse back-end. Verify that it has not subsequently
  73. // been inconsistently redefined.
  74. #if defined(CERES_NO_SPARSE)
  75. #if !defined(CERES_NO_SUITESPARSE)
  76. #error CERES_NO_SPARSE requires CERES_NO_SUITESPARSE.
  77. #endif
  78. #if !defined(CERES_NO_ACCELERATE_SPARSE)
  79. #error CERES_NO_SPARSE requires CERES_NO_ACCELERATE_SPARSE
  80. #endif
  81. #if defined(CERES_USE_EIGEN_SPARSE)
  82. #error CERES_NO_SPARSE requires !CERES_USE_EIGEN_SPARSE
  83. #endif
  84. #endif
  85. #endif // CERES_PUBLIC_INTERNAL_CONFIG_H_