ceres-solver / ceres-solver

A large scale non-linear optimization library

Home Page:http://ceres-solver.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ceres unsets CMAKE_MODULE_PATH when a dependency is missing

jschueller opened this issue · comments

it can happen that find_package(Ceres) erases CMAKE_MODULE_PATH if a dependency is missing due to :
https://github.com/ceres-solver/ceres-solver/blob/master/cmake/CeresConfig.cmake.in#L78

for example, install ceres but delete eg suitesparse from your system
then it could prevent for other dependencies not being found if you rely on CMAKE_MODULE_PATH for other findXXX modules

a workaround is to find ceres after all find_package, or reset CMAKE_MODULE_PATH