aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
Diffstat (limited to 'src')
-rwxr-xr-xsrc/qmake2cmake/pro2cmake.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/qmake2cmake/pro2cmake.py b/src/qmake2cmake/pro2cmake.py
index 9413dba..c14edfa 100755
--- a/src/qmake2cmake/pro2cmake.py
+++ b/src/qmake2cmake/pro2cmake.py
@@ -3834,16 +3834,13 @@ def write_top_level_find_package_section(
*,
indent: int = 0,
):
- # Write find_package call for Qt5/Qt6 and make it available as package QT.
- cm_fh.write("find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)\n")
-
# Write find_package calls for required packages.
write_find_package_section(
cm_fh,
dependencies.required_libs,
indent=indent,
end_with_extra_newline=False,
- qt_package_name="Qt${QT_VERSION_MAJOR}",
+ qt_package_name="Qt6",
)
# Remove optional packages that are already required.
@@ -3856,7 +3853,7 @@ def write_top_level_find_package_section(
indent=indent,
is_required=False,
end_with_extra_newline=False,
- qt_package_name="Qt${QT_VERSION_MAJOR}",
+ qt_package_name="Qt6",
)