-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[opencv/4.x.x] fix CMake imported targets + bump dependencies #4267
[opencv/4.x.x] fix CMake imported targets + bump dependencies #4267
Conversation
OpenCV imported targets are not namespaced
Actually, it doesn't work yet. I guess that build modules are called before targets are defined (but it works when the recipe doesn't use components). |
Some configurations of 'opencv/4.5.0' failed in build 2 (
|
I detected other pull requests that are modifying opencv/4.x recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
Let's wait conan 1.33.0 in CI. |
Failure in build 4 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
Failure in build 5 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
Failure in build 6 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
Failure in build 7 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
This is very weird. The CI is identifying I would like to have a look at this issue and try to understand why this is happening, but I'm not working this weekend 😅 ... if you want to keep working on this PR I think the best/easiest solution is to push an empty commit and the CI should start to use it. |
…center-index into fix/opencv4-cmake-targets
Thanks @jgsogo, I've pushed an empty commit |
Well, it was a typo. So we can create non namespaced imported targets for recipes with components, even before conan 1.33.0 :) |
@madebr @prince-chrismc @ericLemanissier @uilianries @SSE4 Could you review please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
) | ||
|
||
@staticmethod | ||
def _create_cmake_module_alias_targets(module_file, targets): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dislike how much this is being copied around, it really need to be added to Conan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do there exist examples of this pattern for creating imported executables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried something in geographiclib but canceled the modification: ec87edc
imported executables will be implemented in conan.
Specify library name and version: opencv/4.x.x
conan-center hook activated.