1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

FindQt3, FindQt4: Clarify QT_FOUND result variable

Both of these modules provide `QT_FOUND` variable when using the
deprecated FindQt module, but `<PackageName>_FOUND` should be used when
using `find_package(Qt3)` or `find_package(Qt4)`.

- Qt3_FOUND became available in CMake 3.3.
This commit is contained in:
Peter Kokot
2025-09-16 23:10:44 +02:00
parent 5e206e15c5
commit 6a0cf35429
2 changed files with 10 additions and 6 deletions

View File

@@ -24,11 +24,14 @@ Result Variables
This module defines the following variables:
``Qt3_FOUND``
Boolean indicating whether (the requested version of) Qt3 has been found.
.. versionadded:: 3.3
Boolean indicating whether (the requested version of) Qt3 is found.
``QT_FOUND``
Boolean indicating whether Qt3 has been found. This variable is for
compatibility with other Qt find modules.
Same as ``Qt3_FOUND``. Boolean indicating whether (the requested version
of) Qt3 is found. This variable is provided for compatibility with other
Qt find modules.
``Qt3_VERSION``
.. versionadded:: 4.2
@@ -285,7 +288,7 @@ find_package_handle_standard_args(Qt3
REQUIRED_VARS QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE
VERSION_VAR Qt3_VERSION)
unset(FPHSA_NAME_MISMATCHED)
set(QT_FOUND ${QT3_FOUND} )
set(QT_FOUND ${Qt3_FOUND})
if(QT_FOUND)
set( QT_LIBRARIES ${QT_LIBRARIES} ${QT_QT_LIBRARY} )

View File

@@ -130,8 +130,9 @@ This module defines the following variables:
Boolean indicating whether (the requested version of) Qt4 is found.
``QT_FOUND``
Boolean indicating whether (the requested version of) Qt4 has been found.
This variable is available for compatibility with other Qt find modules.
Same as ``Qt4_FOUND``. Boolean indicating whether (the requested version
of) Qt4 is found. This variable is available for compatibility with
other Qt find modules.
``QT_VERSION_MAJOR``
The major version of Qt found.