summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-15 15:39:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-11-15 15:39:55 (GMT)
commit59fc717c252fb6613b35ff3a7d2cf01e91ab6a69 (patch)
treeb3904080d14f5c4760c1996c89bcbc76e2e05e77 /Modules
parent64df9ef33a2f4eb9ef0cb17a2844308d9c7f7034 (diff)
parent0f5c1b404b0f9cbe652cf306e9dca0c25c70876f (diff)
downloadCMake-59fc717c252fb6613b35ff3a7d2cf01e91ab6a69.zip
CMake-59fc717c252fb6613b35ff3a7d2cf01e91ab6a69.tar.gz
CMake-59fc717c252fb6613b35ff3a7d2cf01e91ab6a69.tar.bz2
Merge topic 'deprecate-findqt'
0f5c1b404b find_package(): Add policy to remove the FindQt module Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: noo mook <noomook2519@gmail.com> Merge-request: !2554
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQt.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index 083d6a6..d6a0662 100644
--- a/Modules/FindQt.cmake
+++ b/Modules/FindQt.cmake
@@ -10,6 +10,9 @@ Searches for all installed versions of Qt3 or Qt4.
This module cannot handle Qt5 or any later versions.
For those, see :manual:`cmake-qt(7)`.
+This module exists for the :command:`find_package` command only if
+policy :policy:`CMP0084` is not set to ``NEW``.
+
This module should only be used if your project can work with multiple
versions of Qt. If not, you should just directly use FindQt4 or
FindQt3. If multiple versions of Qt are found on the machine, then
@@ -34,6 +37,11 @@ then the FindQt3 or FindQt4 module is included.
QT3_INSTALLED is set to TRUE if qt3 is found.
#]=======================================================================]
+if(_findqt_testing)
+ set(_findqt_included TRUE)
+ return()
+endif()
+
# look for signs of qt3 installations
file(GLOB GLOB_TEMP_VAR /usr/lib*/qt-3*/bin/qmake /usr/lib*/qt3*/bin/qmake)
if(GLOB_TEMP_VAR)