You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when building a package that consumes glib via pkg-config, the name it generally uses to find the pc file is "glib-2.0.pc", whereas when using conan's "pkg_config" generator, the generated name is "glib.pc". I believe this can be fixed via a simple addition of
cpp_info.names["pkg_config"] = "glib-2.0"
in the package. Happy to submit patch for this
The text was updated successfully, but these errors were encountered:
Glib actually uses several pkg-config files (gio-2.0.pc, gmodule-2.0.pc, gobject-2.0.pc, gthread-2.0.pc etc.)
As conan does not have yet a component feature (conan-io/conan#5090), the pkg-config file generated from conan can only be a merge of all these. Providing a file with the same name as the upstream project but a different content would probably be misleading, but I have no strong opinion on this.
when using the pkg_config generator for the glib package it generates the wrong name
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=7
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
Steps to reproduce (Include if Applicable)
when building a package that consumes glib via pkg-config, the name it generally uses to find the pc file is "glib-2.0.pc", whereas when using conan's "pkg_config" generator, the generated name is "glib.pc". I believe this can be fixed via a simple addition of
cpp_info.names["pkg_config"] = "glib-2.0"
in the package. Happy to submit patch for this
The text was updated successfully, but these errors were encountered: