From d07066e5405d4d49fc00793433cb00445dacd308 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 28 Nov 2022 03:06:45 +0100 Subject: [PATCH] Don't hardcode Qt5 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4fcd1677f..1b478a584 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,7 +145,7 @@ add_definitions(-DQT_NO_FOREACH) add_subdirectory(src) if (BUILD_TESTING AND Quotient_VERSION_MINOR GREATER 6) - find_package(Qt5 ${QT_MIN_VERSION} NO_MODULE COMPONENTS Test) + find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} NO_MODULE COMPONENTS Test) add_subdirectory(autotests) endif()