If pkg-config executable was found PKGCONFIGEXECUTABLE. Pathname of the pkg-config program PKGCONFIGVERSIONSTRING. The version of the pkg-config program found (since CMake 2.8. 8) For the following variables two sets of values exist; first one is the common one and has the given PREFIX. The second set contains flags. Pkg-config is a computer program that defines and supports a unified interface for querying installed libraries for the purpose of compiling software that depends on them. It allows programmers and installation scripts to work without explicit knowledge of detailed library path information. Pkg-config was originally designed for Linux, but it is now also available for the various BSDs.
Designed to help you customize the behavior of the Clover EFI bootloader, Clover Configurator is a simple but powerful software solution that can seamlessly generate personalized configuration files. Easy to install utility for generating Clover EFI configuration files. Upon launch, Clover Configurator.
In that case, it's necessary to prepend the search path so that pkg-config can locate the.pc files. The pkg-config program is used to retrieve information about installed libraries in the system. The primary use of pkg-config is to provide the necessary details for compiling and linking a program to a library. This metadata is stored in pkg. If I set PKGCONFIGPATH to such paths myself, pkg-config also fails to find everything. The pkg-config I have here is the one from msys2. Copy link Quote reply Member alexcrichton commented Nov 20, 2017. Hm yeah so I know things are really weird on msys2/mingw sometimes, I just never really know when or why. It sounds like our only recourse.
A pkg-config module for CMake.
Finds the
pkg-config
executable and add thepkg_check_modules()
and pkg_search_module()
commands.In order to find the
pkg-config
executable, it uses thePKG_CONFIG_EXECUTABLE
variable or the PKG_CONFIG
environment variable first.pkg_check_modules
¶Checks for all the given modules.
When the
REQUIRED
argument was set, macros will fail with an errorwhen module(s) could not be found.When the
QUIET
argument is set, no status messages will be printed.![Pkg Pkg](/uploads/1/2/6/5/126528566/633636691.jpg)
By default, if
CMAKE_MINIMUM_REQUIRED_VERSION
is 3.1 orlater, or if PKG_CONFIG_USE_CMAKE_PREFIX_PATH
is set, theCMAKE_PREFIX_PATH
, CMAKE_FRAMEWORK_PATH
, andCMAKE_APPBUNDLE_PATH
cache and environment variables willbe added to pkg-config
search path.The NO_CMAKE_PATH
and NO_CMAKE_ENVIRONMENT_PATH
argumentsdisable this behavior for the cache variables and the environmentvariables, respectively.It sets the following variables:
For the following variables two sets of values exist; first one is thecommon one and has the given PREFIX. The second set contains flagswhich are given out when
pkg-config
was called with the --static
option.There are some special variables whose prefix depends on the count ofgiven modules. When there is only one module, <PREFIX> staysunchanged. When there are multiple modules, the prefix will bechanged to <PREFIX>_<MODNAME>:
Pkg Config Windows
A <MODULE> parameter can have the following formats:
Pkg-config For Mac
Examples
Get Pkg-config For Mac
Requires at least version 2.10 of glib2 and defines e.g.
GLIB2_VERSION=2.10.3
Requires both glib2 and gtk2, and defines e.g.
FOO_glib-2.0_VERSION=2.10.3
and FOO_gtk+-2.0_VERSION=2.8.20
Defines for example:
pkg_search_module
¶Same as
pkg_check_modules()
, but instead it checks for givenmodules and uses the first working one.Examples
Pkg-config Binary For Machinechoice.host Is Cached As Not Found
PKG_CONFIG_EXECUTABLE
¶Path to the pkg-config executable.
PKG_CONFIG_USE_CMAKE_PREFIX_PATH
¶Pkg-config Install For Mac
Whether
pkg_check_modules()
and pkg_search_module()
should add the paths in CMAKE_PREFIX_PATH
,CMAKE_FRAMEWORK_PATH
, and CMAKE_APPBUNDLE_PATH
cache and environment variables to pkg-config
search path.Pkg-config Binary For Machinechoice.host Is Not Cached
If this variable is not set, this behavior is enabled by default if
CMAKE_MINIMUM_REQUIRED_VERSION
is 3.1 or later, disabledotherwise.