mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
This commit is contained in:
@@ -415,7 +415,7 @@ starting point.
|
||||
.. code-block:: cmake
|
||||
|
||||
find_package(PkgConfig)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
if(PkgConfig_FOUND)
|
||||
pkg_check_modules(PC_Foo QUIET Foo)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -77,6 +77,10 @@ Find Modules
|
||||
result variable. The ``PKG_CONFIG_VERSION_STRING`` result variable is
|
||||
deprecated.
|
||||
|
||||
* The :module:`FindPkgConfig` module's result variable ``PKG_CONFIG_FOUND``
|
||||
is deprecated in favor of ``PkgConfig_FOUND``, which is available since
|
||||
CMake 3.3 and has the same value.
|
||||
|
||||
* The :module:`FindPNG` module now provides a ``PNG_VERSION`` result
|
||||
variable. The ``PNG_VERSION_STRING`` result variable is deprecated.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user