From 1e2d59015fa6ae4c743e8373e05999fd37956f90 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 3 Feb 2026 22:55:20 +0100 Subject: CMakeLists.txt: Only find Qt${QT_VERSION_MAJOR} Otherwise, systems with both Qt5 and Qt6 installed might cause pkg_check_modules(qca) to find the invalid version. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4fe840..2fdbaf4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -find_package(QT NAMES Qt6 Qt5 COMPONENTS Concurrent Widgets Sql REQUIRED) +find_package(QT NAMES Qt${QT_VERSION_MAJOR} COMPONENTS Concurrent Widgets Sql REQUIRED) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Concurrent Widgets Sql REQUIRED) set(PROJECT_SOURCES -- cgit v1.2.3