Ensure local config.h is used if Ceres is already installed.

- Previously, if Ceres was already installed to the same location as one
  of the depenedencies (e.g. /usr/local) then as the BUILD_DIR/config
  path was necessarily added to the include_directories() list *after*
  the INCLUDE_DIRS for the dependencies, the config.h for the
  *installed* version of Ceres would be used instead of the locally
  configured version, as it would appear first on the path.
- Forcing the location of the locally configured config.h to the front
  of the include_directories() list ensures that it is found first
  (and is thus used) even if an installed version of Ceres also exists
  on the path.

Change-Id: I7b4f97a3ad0120bd11551f9b8eb6bffc66966eb4
1 file changed
tree: 1190ef8230b43180ed53341b652e1b080a20d4a3
  1. cmake/
  2. config/
  3. data/
  4. docs/
  5. examples/
  6. include/
  7. internal/
  8. jni/
  9. scripts/
  10. .gitignore
  11. CMakeLists.txt
  12. LICENSE
  13. README.md
README.md

Ceres Solver - A non-linear least squares minimizer

Please see ceres-solver.org for more information.

WARNING - Do not make GitHub pull requests!

Ceres development happens on Gerrit, including both repository hosting and code reviews. The GitHub Repository is a continuously updated mirror which is primarily meant for issue tracking. Please see our Contributing to Ceres Guide for more details.

The upstream Gerrit repository is

https://ceres-solver.googlesource.com/ceres-solver