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

Merge topic 'patch-QT_FOUND'

6a0cf35429 FindQt3, FindQt4: Clarify QT_FOUND result variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11198
This commit is contained in:
Brad King
2025-09-18 12:40:20 +00:00
committed by Kitware Robot
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.