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
Copy file name to clipboardExpand all lines: reference/tools/gnu/pkgconfig.rst
+6-1
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Using PkgConfig to fill a ``cpp_info`` object
29
29
---------------------------------------------
30
30
31
31
The ``PkgConfig`` class can be used to fill a ``CppInfo`` object with the information that will be consumed by the ``PkgConfigDeps`` generator later.
32
-
This is a useful feature when packaging a system library that provides a ``.pc`` file, or when a proprietary package has a build system that only outputs ``.pc`` files.
32
+
This is a useful feature when packaging a proprietary package has a build system that only outputs ``.pc`` files for a known environment.
33
33
34
34
.. code-block:: python
35
35
@@ -78,6 +78,11 @@ The ``.pc`` information will be extracted from the ``cpp_info.json`` file locate
78
78
This way, the ``PkgConfig`` will not need to invoke the ``pkg-config`` executable again to extract the information from the ``.pc`` file,
79
79
when consuming the package.
80
80
81
+
.. warning::
82
+
83
+
It's not recommended to use this approach when creating a "system" package recipe, as the packaged information may not be compatible with the host system,
0 commit comments