mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 19:08:07 +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:
@@ -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} )
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user