FindPkgConfig: Allow passing `--define-variable` to `pkg-config`
In order to be able to install some files properly, we need to modify segments of paths obtained from pkg-config
.
$ pkg-config \
> --define-variable=prefix=/your/prefix \
> --variable=giomoduledir
> gio-2.0
/your/prefix/lib/gio/modules
See https://www.bassi.io/articles/2018/03/15/pkg-config-and-paths/ for more information.
Currently FindPkgConfig
module offers no such option so we have to result for raw calls to PKG_CONFIG_EXECUTABLE
.
Edited by Brad King