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

fail to set XXX_INCLUDE_DIR #657

Open
vison-yang opened this issue Jul 23, 2024 · 1 comment
Open

fail to set XXX_INCLUDE_DIR #657

vison-yang opened this issue Jul 23, 2024 · 1 comment
Assignees

Comments

@vison-yang
Copy link

I succeeded to install package by conan, using conanfile.txt.
`[requires]
eigen/3.4.0
ceres-solver/1.14.0
glog/0.7.0
opencv/3.4.12

[generators]
CMakeDeps

CMakeToolchain`

conan install . --output-folder=build --build=missing
Calling cmake to configure project also succeeded.
cmake ../src/
But when make, it failed to find .h of the packages that I need.
And I look into CMakeCache.txt, there is only var such as Ceres_DIR, but didn't find var like Ceres_INCLUDE_DIR.
So I debug CMakeList.txt and XXXCofig.cmake, I found that XXX_INCLUDE_DIR is also empty.
In XXXConfig.cmake, comands as below failed:
set(Ceres_INCLUDE_DIR ${ceres-solver_INCLUDE_DIRS_RELEASE} )
Ceres_INCLUDE_DIR is empty too.

@memsharded memsharded self-assigned this Jul 23, 2024
@memsharded
Copy link
Member

Hi @vison-yang

Thanks for your question.
This is not very clear. When using cmake-conan it is not necessary to call conan install yourself.

Can you please provide the full command of your cmake invocation and the full output?
It would also be necessary to have the CMakeListst.txt to reproduce the issue.

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