cmake: Avoid hardcoding Qt's major version in Find module

This change facilitates future migration to Qt 6.
This commit is contained in:
Hennadii Stepanov committed 2024-10-01 13:43:30 +01:00
1 parent fc642c33ef
commit deacf3c7cd
2 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ if(BUILD_GUI)
if(BUILD_GUI_TESTS)
list(APPEND qt_components Test)
endif()
find_package(Qt5 5.11.3 MODULE REQUIRED
find_package(Qt 5.11.3 MODULE REQUIRED
COMPONENTS ${qt_components}
)
unset(qt_components)