Files
cmake/Tests/RunCMake/FindPkgConfig/PkgConfigDoesNotExist.cmake
Peter Kokot 9e3d2cd94f FindPkgConfig: Deprecate PKG_CONFIG_FOUND
Since most of the find modules use the `<PackageName>_FOUND` result
variables, this now also syncs it for the FindPkgConfig module. The
`PkgConfig_FOUND` result variable is available since CMake 3.3 and
contains the same value. There is also `PKGCONFIG_FOUND` result variable
automatically set with the same value but for simplicity isn't
documented. The uppercased `<PACKAGENAME>_FOUND` result variables set by
find modules are also considered legacy variables.
2025-08-21 01:01:33 +02:00

6 lines
276 B
CMake

set(PKG_CONFIG_EXECUTABLE "pkg-config-does-not-exist" CACHE FILEPATH "")
find_package(PkgConfig)
message(STATUS "PkgConfig_FOUND='${PkgConfig_FOUND}'")
message(STATUS "PKG_CONFIG_FOUND='${PKG_CONFIG_FOUND}'")
message(STATUS "PKG_CONFIG_EXECUTABLE='${PKG_CONFIG_EXECUTABLE}'")