From 85c8cf6dcdef39cf4c739a6fe70643fa46ba3839 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Tue, 2 Apr 2024 10:46:20 +0200 Subject: [PATCH] Cmake build: Adapt for branch 2.4 (cherry picked from commit b8b9e8ec1402341229aade4b4a975b54c3ef80c9) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 86226dc8e8..f473ee4bc5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -664,9 +664,9 @@ set(min_qt5_version "5.6") if(LYX_USE_QT MATCHES "AUTO") # try qt6 first find_package(Qt6Core CONFIG QUIET) - if (Qt6Core_Found) + if (Qt6Core_FOUND) set(LYX_USE_QT "QT6" CACHE STRING "Valid qt version" FORCE) - message(STATUS "Qt5Core_VERSION = ${Qt5Core_VERSION}") + message(STATUS "Qt6Core_VERSION = ${Qt6Core_VERSION}") else() find_package(Qt5Core CONFIG QUIET) if(Qt5Core_FOUND)