summaryrefslogtreecommitdiffstats
path: root/Help/release/dev/FindPkgConfig-PKG_CONFIG-args.rst
diff options
context:
space:
mode:
authorChristopher Degawa <ccom@randomderp.com>2021-06-11 20:17:39 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-18 15:10:12 (GMT)
commit35d3e00e4e9b138dec1d1a646766fc342d04b8f5 (patch)
treea27895e2748c4ab00ce77d30f2dbb6191ac86027 /Help/release/dev/FindPkgConfig-PKG_CONFIG-args.rst
parent11695f5985e9cbd7a5206908fe6d2ea7e77865e9 (diff)
downloadCMake-35d3e00e4e9b138dec1d1a646766fc342d04b8f5.zip
CMake-35d3e00e4e9b138dec1d1a646766fc342d04b8f5.tar.gz
CMake-35d3e00e4e9b138dec1d1a646766fc342d04b8f5.tar.bz2
FindPkgConfig: split args if loaded from environment
It's common for some people to use the PKG_CONFIG environment variable to not only load a custom pkg-config/pkgconf but also to load some default arguments such as `--static` or `--keep-system-libs` which often worked since shell scripts would call `$PKG_CONFIG --libs pkg` without quotes, but this breaks FindPkgConfig since it uses the full string as `argv[0]` and might try looking for a binary called `pkgconf --static`, instead of looking for `pkgconf` and adding `--static` as the `argv[1]` Additionally adds RunCMake.FindPkgConfig ARGN test case Fixes: #22305 Signed-off-by: Christopher Degawa <ccom@randomderp.com>
Diffstat (limited to 'Help/release/dev/FindPkgConfig-PKG_CONFIG-args.rst')
-rw-r--r--Help/release/dev/FindPkgConfig-PKG_CONFIG-args.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/release/dev/FindPkgConfig-PKG_CONFIG-args.rst b/Help/release/dev/FindPkgConfig-PKG_CONFIG-args.rst
new file mode 100644
index 0000000..44c26b5
--- /dev/null
+++ b/Help/release/dev/FindPkgConfig-PKG_CONFIG-args.rst
@@ -0,0 +1,5 @@
+FindPkgConfig-PKG_CONFIG-args
+-----------------------------
+
+* The :module:`FindPkgConfig` module gained a :variable:`PKG_CONFIG_ARGN`
+ variable to specify arguments to ``pkg-config`` calls.