Don't hardcode Qt5

This commit is contained in:
Nicolas Fella
2022-11-28 03:06:45 +01:00
parent dfb569c0f6
commit d07066e540

View File

@@ -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()