Find*: Update *_FOUND variables

This marks all `<PACKAGENAME>_FOUND` result variables as deprecated
where possible (for `<PackageName>` find modules) to make it clearer
which variable to use.

In CMake 3.3, the FindPackageHandleStandardArgs module was refactored to
set both `<PackageName>_FOUND` and uppercase `<PACKAGENAME>_FOUND`
result variables to the same values. Before that, the FOUND_VAR argument
could be used to set the result variable.

* FindMatlab: Uppercased MATLAB_FOUND is not mentioned as it was never
  documented.
* Documentation for FindPythonInterp and FindPythonLibs modules synced
  accordingly to their deprecation (3.12 instead of 4.2).
* OPENGL_FOUND: deprecation version synced with other find modules.
* DevIL_FOUND was introduced in CMake 3.8. The uppercased variant not
  mentioned as it was previously never documented.

Fixes: #27242
This commit is contained in:
Peter Kokot
2025-09-23 20:36:50 +02:00
parent 9f190de849
commit 0fedf1592c
141 changed files with 1012 additions and 323 deletions
+2 -2
View File
@@ -361,10 +361,10 @@ reStructuredText-format documentation. For example:
Result Variables
^^^^^^^^^^^^^^^^
This will define the following variables:
This module defines the following variables:
``Foo_FOUND``
True if the system has the Foo library.
Boolean indicating whether (the requested version of) Foo was found.
``Foo_VERSION``
The version of the Foo library which was found.
``Foo_INCLUDE_DIRS``