From c298c4553becd799d924a58a33a6f59910477aad Mon Sep 17 00:00:00 2001 From: Christian Pfeiffer Date: Sat, 20 Apr 2019 20:37:36 +0200 Subject: FindQt3: Restore missing lib and bin path suffixes Restore path suffixes incorrectly removed by commit a62d50ec56 (Modules: Replace coded PATHS with PATH_SUFFIXES, 2017-11-20, v3.11.0-rc1~293^2). Hints do not participate in the usual bin/lib subdirectory search that `_ROOT` or `CMAKE_PREFIX_PATH` exhibit. Fixes: #19185 --- Modules/FindQt3.cmake | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Modules/FindQt3.cmake b/Modules/FindQt3.cmake index 4a8e28b1b6..563ed46eca 100644 --- a/Modules/FindQt3.cmake +++ b/Modules/FindQt3.cmake @@ -101,7 +101,7 @@ if (QT_MT_REQUIRED) /usr/share/qt3 C:/Progra~1/qt PATH_SUFFIXES - lib/qt lib/qt3 qt qt3 qt/lib qt3/lib + lib lib/qt lib/qt3 qt qt3 qt/lib qt3/lib ) else () @@ -119,7 +119,7 @@ else () /usr/share/qt3 C:/Progra~1/qt/lib PATH_SUFFIXES - lib/qt lib/qt3 qt qt3 qt/lib qt3/lib + lib lib/qt lib/qt3 qt qt3 qt/lib qt3/lib ) endif () @@ -135,7 +135,7 @@ find_library(QT_QASSISTANTCLIENT_LIBRARY /usr/share/qt3 C:/Progra~1/qt PATH_SUFFIXES - lib/qt lib/qt3 qt qt3 qt/lib qt3/lib + lib lib/qt lib/qt3 qt qt3 qt/lib qt3/lib ) # Qt 3 should prefer QTDIR over the PATH @@ -151,7 +151,7 @@ find_program(QT_MOC_EXECUTABLE /usr/share/qt3 C:/Progra~1/qt PATH_SUFFIXES - lib/qt lib/qt3 qt qt3 qt/lib qt3/lib + bin lib/qt lib/qt3 qt qt3 qt/bin qt3/bin lib/qt/bin lib/qt3/bin ) if(QT_MOC_EXECUTABLE) @@ -171,7 +171,7 @@ find_program(QT_UIC_EXECUTABLE /usr/share/qt3 C:/Progra~1/qt PATH_SUFFIXES - lib/qt lib/qt3 qt qt3 qt/lib qt3/lib + bin lib/qt lib/qt3 qt qt3 qt/bin qt3/bin lib/qt/bin lib/qt3/bin ) if(QT_UIC_EXECUTABLE) @@ -188,6 +188,8 @@ if (WIN32) PATHS "$ENV{ProgramFiles}/qt" "C:/Program Files/qt" + PATH_SUFFIXES + lib DOC "This Library is only needed by and included with Qt3 on MSWindows. It should be NOTFOUND, undefined or IGNORE otherwise." ) endif () -- cgit v1.2.1