cmake: Avoid hardcoding Qt's major version in Find module
This change facilitates future migration to Qt 6.
This commit is contained in:
2 files changed
+13
-13
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user