Skip to content

Commit

Permalink
[doc] document vcpkg_fixup_pkgconfig merging behaviour (#18091)
Browse files Browse the repository at this point in the history
* [doc] document vcpkg_fixup_pkgconfig merging behaviour

* [doc] add source
  • Loading branch information
mcmtroffaes authored Jun 4, 2021
1 parent 750c0bd commit bec883f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/maintainers/vcpkg_fixup_pkgconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_fixup_pkgconfig.md).

Fix common paths in *.pc files and make everything relative to $(prefix)
Fix common paths in *.pc files and make everything relative to $(prefix).
Additionally, on static triplets, private entries are merged with their non-private counterparts,
allowing pkg-config to be called without the ``--static`` flag.
Note that vcpkg is designed to never have to call pkg-config with the ``--static`` flag,
since a consumer cannot know if a dependent library has been built statically or not.

## Usage
```cmake
Expand Down
6 changes: 5 additions & 1 deletion scripts/cmake/vcpkg_fixup_pkgconfig.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#[===[.md:
# vcpkg_fixup_pkgconfig
Fix common paths in *.pc files and make everything relative to $(prefix)
Fix common paths in *.pc files and make everything relative to $(prefix).
Additionally, on static triplets, private entries are merged with their non-private counterparts,
allowing pkg-config to be called without the ``--static`` flag.
Note that vcpkg is designed to never have to call pkg-config with the ``--static`` flag,
since a consumer cannot know if a dependent library has been built statically or not.
## Usage
```cmake
Expand Down

0 comments on commit bec883f

Please sign in to comment.