]> The Tcpdump Group git mirrors - tcpdump/commit
CMake: add stuff from CMAKE_PREFIX_PATH to PKG_CONFIG_PATH.
authorGuy Harris <[email protected]>
Fri, 8 Jan 2021 09:35:31 +0000 (01:35 -0800)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 31 Mar 2021 11:24:13 +0000 (13:24 +0200)
commit8157a313896dd0a70035ac171404e43d18f89da5
tree19c392329891de843df0a30d15241c1df7f6d599
parentba25c06426125c5d0e158cd41ff93e0f4532782a
CMake: add stuff from CMAKE_PREFIX_PATH to PKG_CONFIG_PATH.

Pull in some code from CMake 3.12.4's FindPkgConfig.cmake to arrange
that, when running pkg-config, directories from CMAKE_PREFIX_PATH are in
the PKG_CONFIG_PATH environment variable.

We do this because we want to make sure that, if CMAKE_PREFIX_PATH is
set, and it points to a directory that contains a libpcap that has a .pc
file installed, we get that .pc file, but we don't yet want to require a
minimum of CMake 3.1 or later (CMake 3.1 and later do that
automatically) because there might be some long-term support OS version
that comes with an older version of CMake.

(cherry picked from commit 8ceef287ad9e3157c9ab390a102433e9203c2d90)
CMakeLists.txt
cmake/Modules/FindPCAP.cmake