Skip to content

Commit d7ada9a

Browse files
hillwoodrocBLumia
authored andcommitted
fix: (cmake) Fix Qt version check variable name
The condition used `Qt6_VERSION`, which is not defined by `find_package(QT ...)`. Replace it with the correct variable `QT_VERSION` to ensure the version check works properly with Qt 6.10 and later.
1 parent ddb765d commit d7ada9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ option(ENABLE_COV "Enable code coverage" OFF)
2121
if(PROJECT_VERSION_MAJOR EQUAL 6)
2222
set(VERSION_SUFFIX 6)
2323
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
24-
if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10)
24+
if(QT_VERSION VERSION_GREATER_EQUAL 6.10)
2525
find_package(Qt6 COMPONENTS CorePrivate GuiPrivate WidgetsPrivate REQUIRED)
2626
endif()
2727
else()

0 commit comments

Comments
 (0)