FindPkgConfig: Add PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 by default
Although it is not documented in recent man pages of pkg-config(1)
(https://linux.die.net/man/1/pkg-config), these variables seem to still be used. CMake however does not use CFLAGS
or LIBRARY_PATH
, leading to missing -I/-L
flags, so these options should always be added when running pkg-config
. Or am I missing something about these being needed for cross-compilation or other scenario?
Oh that is already there for PKG_CONFIG_ALLOW_SYSTEM_LIBS
, but not for PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
Edited by Brad King