-
Notifications
You must be signed in to change notification settings - Fork 981
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
Add way to specify xxx for Findxxx.cmake with cmake_find_package generator #5717
Comments
On a second thought, given that most of the libraries with this problem do provide their own cmake files, maybe there should be a variable to tell conan that the generated FindXXX.cmake should just be wrappers to those. |
Hi!
We don't recommend the packages to package these |
@lasote #5598 is very useful but imho conan needs a more powerful solution. In
conan should then have sufficient information to create the targets |
That would be very complex, we are not going to play the game of emulating the CMake find package scripts like https://cmake.org/cmake/help/latest/module/FindOpenSSL.html |
@lasote Indeed, this could get complex. I just discovered the The difficulty with this approach is the following:
My problem lies in the way how to convey these lists of libs from package_info to the cmake script without copying code. The |
The original question of this issue has been solved. |
Thanks. Closing this one then. |
To help us debug your issue please explain:
Conan 1.18
Currently the
cmake_find_package
produces Findxxx.cmake where the package name matches the name of the conan package. This is a problem for libraries like Boost and Eigen, which are packaged with lowercase names but most CMakeLists usefind_package(Boost/Eigen)
. In these cases, CMake does not consider conan's generated files.Would it be possible to add another optional variable to ConanFile which would be a list of names to control this, eg:
Alternatively (or additionally) could a way to specify the name be added to the conanfile of the project?
The text was updated successfully, but these errors were encountered: