Skip to content

fail to set XXX_INCLUDE_DIR #657

@vison-yang

Description

@vison-yang

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions