vcpkg/docs/maintainers/internal/z_vcpkg_setup_pkgconfig_path.md
Alexander Neumann bae8f8c7d8
[world rebuild] Move vcpkg-cmake-get-vars to its own port (#24636)
* move vcpkg-cmake-get-vars to its own helper port

* manifest format

* version stuff

* doc and version stuff

* add missing include

* version bump

* remove coypright copying.

* version stuff

Co-authored-by: Alexander Neumann <you@example.com>
2022-05-11 16:51:06 -07:00

825 B

z_vcpkg_setup_pkgconfig_path

The latest version of this document lives in the vcpkg repo.

z_vcpkg_setup_pkgconfig_path sets up environment variables to use pkgconfig, such as PKG_CONFIG and PKG_CONFIG_PATH. The original values are restored with z_vcpkg_restore_pkgconfig_path. BASE_DIRS indicates the base directories to find .pc files; typically ${CURRENT_INSTALLED_DIR}, or ${CURRENT_INSTALLED_DIR}/debug.

z_vcpkg_setup_pkgconfig_path(BASE_DIRS <"${CURRENT_INSTALLED_DIR}" ...>)
# Build process that may transitively invoke pkgconfig
z_vcpkg_restore_pkgconfig_path()

Source

scripts/cmake/z_vcpkg_setup_pkgconfig_path.cmake