]> 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)
committerGuy Harris <[email protected]>
Fri, 8 Jan 2021 09:35:31 +0000 (01:35 -0800)
commit8ceef287ad9e3157c9ab390a102433e9203c2d90
treed1f4e9a99bb845239091410c38d6a3c4ce12a4a3
parent375b9ff7b6ef7127c07813d10fdfce8437184740
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.
CMakeLists.txt
cmake/Modules/FindPCAP.cmake