-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
diligent-core: migrate to Conan v2 #23347
diligent-core: migrate to Conan v2 #23347
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit ab5b43ddiligent-core/api.252005@#c5e43fba2d251db74b30e90dc23e7c4d
diligent-core/api.252004@#25e5d7ab6414e84ba1bd52e898cd2da9
diligent-core/api.250014@#f688142527956ffcb3b8d5d0853ccc5f
diligent-core/2.5.2@#882ed6a310496183bac52ea5f407fe8f
diligent-core/api.252003@#f1becd85a6d342f6ff4c627148a6c626
diligent-core/2.5.1@#7c9c2ca2e0b5f2d0827210ee1269ac6b
diligent-core/api.252009@#88cf924aeaa270e277383d0e88661513
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi @valgur, how could this PR get the required approvals? @RubenRBS, can you provide a required review? |
@MikeLankamp Could you review MikeLankamp#1? That change will use the |
@jwillikers, may I ask why? Your change seems unrelated with my Conan 2.0 support and aims to get Additionally, I'm not knowledgable enough about |
Hi! We have moved the discussion on As for the review of the PR itself, this is something I plan on doing next monday, sorry for the delay! From what I've seen in a quick glance, it looks mostly good to go! :) |
I suppose that didn't happen, but I hope you'll find time next week :) |
Hi, @danimtb, @RubenRBS, I don't want to sound pushy, but this PR has been awaiting a review for almost two months now. I'd like to remind you that without this change, this package is unusable with Conan 2. I hope you can find the time soon to have a look at this change. |
Hi @MikeLankamp, I'm sorry for not getting back to you sooner. It is somehow hard to keep pace with the reviews. I have noticed you added files for test_v1_package, which are no longer needed. I don't see anything else to prevent this PR from getting merged. But let's wait for @RubenRBS review. Thanks a lot for your patience 🙏 |
Conan v1 pipeline ✔️All green in build 9 (
Conan v2 pipeline ✔️
All green in build 9 (
|
Hi @valgur, @danimtb, @RubenRBS, sorry to bother you after this is merged (thanks for approving this PR!), but when I try to use this package, Conan 2 complains as follows:
I'm using MSVC and my local profile has Is this is a bug in Conan, or a bug in this package? On the one hand, documentation seems to indicate you can put any string in That said, I also don't quite get why the runtime property is set to both release/debug. I suppose this reuses the same prebuilt package for both configurations, but I don't know why. It's been this way since this recipe got added in #7804. @AndreyMlashkin, do you perhaps remember why? Update: fixed in conan-io/conan#16575 |
Specify library name and version: diligent-core/*
Upgrading diligent-core to Conan 2.
The main problems in using diligent-core with Conan 2 as-is are:
vulkan-validationlayers/1.3.224.1
, but 1.3.224.1 fromdiligent-core
itself andvolk/1.3.224.1
). This has been fixed by setting the conflicting dependencies to 1.3.224.0.cmake/3.24.2
tool requirement is not Conan2-enabled. The dependency has been generalized to[>=3.24 <4]
, which allows Conan to pick a Conan2-enabled version.This PR is similar to PR #21522, but doesn't attempt to bump dependencies, which comes with its own set of problems apparently. This PR just tries to get this recipe Conan2-compatible.
Some additional fixes in the conanfile are required to support Conan2. The largest of which is the change that the source is no longer downloaded into "source_subfolder". This was originally to provide a custom top-level CMakeLists.txt which defines library aliases for conan dependency. Without these, Diligent's own CMake files attempts to build empty folders in "ThirdParty". This was changed into modifying the original top-level CMakeLists.txt to include the file with target aliases instead (similar to PR #21522).