Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
adding new package cvplot #8167
adding new package cvplot #8167
Changes from all commits
83753e6
d4c1c60
6d1ed8e
5b21a6d
17194b6
ebb54ea
022324b
0b46e18
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 was not able to find any modules being installed 🤔
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.
Not sure about that. I thought
both
means, that we support bothfind_package(CvPlot CONFIG)
andfind_package(CvPlot MODULE)
?I tried the
MODULE
version. Conan creates aFindcvplot.cmake
then but cmake does not find opencv:So I guess we should stick to the default
config
mode?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.
have to add
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.
That solves the
CvPlot
spelling, but I still dont know how to consume theFindCvPlot.cmake
. Always gettingNo "Findopencv.cmake"
.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.
hmm, Conan generates OpenCV.cmake not opencv.cmake. Do you have a log? The CI is working for the test package.
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 think some consumers may use
find_package(cvplot CONFIG)
and some may usefind_package(cvplot MODULE)
, right? is there any reason not to support both use-cases?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.
@SSE4 as I said above:
find_package(cvplot MODULE)
already works withgenerators = "cmake", "cmake_find_package"
and does not needself.cpp_info.set_property("cmake_find_mode", "both")
generators = "cmake", "CMakeDeps"
(No "Findopencv.cmake" found
)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.
According to the CMake docs https://cmake.org/cmake/help/latest/manual/cmake-modules.7.html#find-modules
find_package(cvplot MODULE)
does not exist ... to my knowledge. I do not expect it to workThere 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.
this list built-in CMake modules only, but someone can use the custom Find module in his own project, right? I've seen it in a lot of OSS projects in the wild, it's pretty common practice
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.
Sadly theres been a lot of misuse... downstream project can write their own (which is fairly common) then this setting makes sense
https://cmake.org/cmake/help/latest/command/find_package.html#id4
The file CMake searches for in module mode should not be provided by the package itself.
Looking in the github repo I dont see any custom files... but it's not easy to search all projects