Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ceres unsets CMAKE_MODULE_PATH when a dependency is missing #1024

Open
jschueller opened this issue Nov 7, 2023 · 1 comment
Open

ceres unsets CMAKE_MODULE_PATH when a dependency is missing #1024

jschueller opened this issue Nov 7, 2023 · 1 comment

Comments

@jschueller
Copy link

jschueller commented Nov 7, 2023

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

@sandwichmaker
Copy link
Contributor

@alexsmac / @sergiud thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants