z_vcpkg_setup_pkgconfig_path
Warning
This is an internal helper function used internally to implement vcpkg. Behavior and arguments will change in breaking ways without notice. Do not use this function.
Set up the environment to use pkgconfig
.
Usage
z_vcpkg_setup_pkgconfig_path(BASE_DIRS <base-dirs>)
Parameters
BASE_DIRS
List of base directories to use.
Typically ${CURRENT_INSTALLED_DIR}
or ${CURRENT_INSTALLED_DIR}/debug
, but not both.
Notes
Acquires and sets PKG_CONFIG
to a valid pkg-config
program.
For each entry of BASE_DIRS
, prepends <entry>/lib
and <entry>/share
to PKG_CONFIG_PATH
in an unspecified order.
See also z_vcpkg_restore_pkgconfig_path
.
Examples
z_vcpkg_setup_pkgconfig_path(BASE_DIRS "${CURRENT_INSTALLED_DIR}")
# Build process that may internally invoke pkgconfig
vcpkg_execute_build_process(COMMAND my-buildsystem.py -release ...)
z_vcpkg_restore_pkgconfig_path()
if(NOT VCPKG_BUILD_TYPE)
z_vcpkg_setup_pkgconfig_path(BASE_DIRS "${CURRENT_INSTALLED_DIR}/debug")
# Build process that may internally invoke pkgconfig
vcpkg_execute_build_process(COMMAND my-buildsystem.py -debug ...)
z_vcpkg_restore_pkgconfig_path()
endi()
Source
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for