From dfa2b58cb67f8514768780e33bd35f157efa6e89 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 20 Mar 2025 20:18:12 +0100 Subject: [PATCH] FindQt4: Restore QT4_FOUND setting Commit 1a8e43d57d (FindPackageHandleStandardArgs: Clarify the FOUND_VAR option, 2024-12-31, v4.0.0-rc1~247^2) simplified the `_FOUND` and `_FOUND` variables one step further but missed that this specific module sets the `QT4_FOUND` variable also for the case where `find_package_handle_standard_args()` isn't called (for example, when the found package is Qt3 or Qt5 and later). Restore the `set()` call in case `QT4_FOUND` is used in the code. --- Modules/FindQt4.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index e7c0fe263d..580e1e254a 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -1339,4 +1339,5 @@ endif() set (QT_MOC_EXE ${QT_MOC_EXECUTABLE} ) set (QT_UIC_EXE ${QT_UIC_EXECUTABLE} ) set( QT_QT_LIBRARY "") +set(QT4_FOUND ${Qt4_FOUND}) set(QT_FOUND ${Qt4_FOUND})