-
Notifications
You must be signed in to change notification settings - Fork 255
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
Is the wrapper compatible with packages that provide their own cmake config files? #682
Comments
Ah, if I understand https://docs.conan.io/2/examples/tools/cmake/cmake_toolchain/use_package_config_cmake.html correctly, this only works with the toolchain-generator. |
Hi @ottmar-zittlau - the idea is that it should work yes, if it doesn't then that's something we need to fix! |
Thanks for your feedback - that would be great. I found in the documentation (https://docs.conan.io/2/examples/tools/cmake/cmake_toolchain/use_package_config_cmake.html) the following quote:
I have activated the toolchain-generator and in the generated
However, I don't see anything like this when only using the CMakeDeps generator. I think it would be necessary that CMakeDeps also generates a file containing this information. I looked around the conan code a bit and found this PR: conan-io/conan#16964 The pull request description states, that the new generator can be activated by If I run cmake install on the command line with this setting it works, but I didn't manage to get it working from within cmake. I use
I think it would be necessary to use the new CMakeDeps generator in the provider script and then use the generated paths file to find packages. Do you have an idea when such an integration could be done? I would like to avoid writing all the cpp_info-overhead for our packages and this would simplify this a lot, because we already have all the cmake-configuration-files. I could also try my hand at it, but I don't fully understand the consequences of including the generated paths file in the conan provider. It would also be interesting to understand, what the status of the new cmakedeps-generator is? Is this something that will replace the old one anytime soon? Best regards |
Hi,
I'd like to use the wrapper with a package that provides its own cmake-files,
i.e. uses the settings:
However, it doesn't seem to work. Should it work? Can I somehow debug it?
Did I specify the builddirs correctly? The path should be valid relative to the package root.
Thanks and best regards
oz
The text was updated successfully, but these errors were encountered: