-
Notifications
You must be signed in to change notification settings - Fork 998
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] CLI command to discover the cmake_find_package filename from the Conan package name? #7525
Comments
I think this should be updated in the Using it would be:
And you get the file with the instructions for the different generators. |
That's ok for a human, but I'm looking for something that can be easily consumed by a script. |
Ok, lets add that data to the "dependencies": [
{
"version": "1.2.11",
"exelinkflags": [],
"frameworks": [],
"framework_paths": [],
"cppflags": [],
"name": "zlib"
}
], Add: "dependencies": [
{
"version": "1.2.11",
"exelinkflags": [],
"frameworks": [],
"framework_paths": [],
"cppflags": [],
"name": "zlib"
"names": {"cmake_find_package": "xxxx", "pkg_config": "yyyy"}
"filenames": {"cmake_find_package": "zzzz"}
}
], |
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
* #7525 Show filenames in json Signed-off-by: Uilian Ries <uilianries@gmail.com> * #7525 Add basic test for markdown generator Signed-off-by: Uilian Ries <uilianries@gmail.com> * #7525 Re-use jinja instance Signed-off-by: Uilian Ries <uilianries@gmail.com> * #7525 Fix cmake find package name Signed-off-by: Uilian Ries <uilianries@gmail.com>
This has been added in #7690 and will be released in Conan 1.30 |
The
cmake_find_package
generator writes a Find Module file that defines a target in a namespace. Each of these three names (filename, namespace, target) are configurable incpp_info
. For example,will generate a file named
FindBoostFile.cmake
that is used like this:Is there a CLI command that can print out these values given a package reference? Something like
The text was updated successfully, but these errors were encountered: