-
Notifications
You must be signed in to change notification settings - Fork 979
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
[question] Setting specific generator for dependency. #15591
Comments
Thanks for your question.
Please don't use these generators, they are legacy and superseded long time ago by Then, I am not sure I understood the issue. The recipes in ConanCenter do not create
If
Yes, using in-package
|
Thanks again for your quick reply. You are right, I'm currently trying to migrate custom built recipes to those from the conan-center. I will follow your advice and focus on CMakeDeps from now on. I also figured out, that minizip didn't work for me, because it was integrated using |
What is your question?
Hi,
I'm currently trying to update minizip-ng.
Previously we used a custom written recipe that worked fine with the cmake_paths-generator.
Now, I'm trying to use the minizip-ng recipe from conan center (https://github.com/conan-io/conan-center-index/blob/master/recipes/minizip-ng/all/conanfile.py). However, this doesn't work with the cmake_paths generator.
If I understand correctly, there is no minizip-config.cmake file contained in the package, so it relies on conan to generate it.
I then tried to use CMakeDeps - however, this generator "overwrites" all the cmake-config files contained in the packages, creating additional problems. I found a question with the exact same problem: #7118 - however, I don't understand the solution #12609. I also don't understand the documentation: https://docs.conan.io/1/reference/conanfile/tools/cmake/cmakedeps.html#set-property.
Maybe a detail on my issues with CMakeDeps - I use the "cmake_find_mode=None"-pattern (https://docs.conan.io/1/reference/conanfile/tools/cmake/cmakedeps.html#disable-cmakedeps-for-installed-cmake-configuration-files) quite a lot in my custom recipes, because this makes the most sense for me. However, when I use CMakeDeps these packages are ignored and if I understand correctly, I would then need to use the "ConanToolChain"-generator to get a hold of these packages, too. However, the toolchain-generator would be quite inconvenient for me, because I would need to always run conan on the command line before starting my IDE - and currently everything works fine from within CMake.
I tried mixing "cmake_paths" and cmake_find_package", but "cmake_find_packages" seems to generate find-package-files for each dependency.
So my questions are:
Thanks and best regards
oz
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: