Skip to content

Commit 1b202c7

Browse files
felixonmars18202781743
authored andcommitted
fix: adjust cmake conditions for <6.10 compatibility
1 parent e9112a0 commit 1b202c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ 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-
find_package(Qt6 COMPONENTS CorePrivate GuiPrivate WidgetsPrivate REQUIRED)
24+
if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10)
25+
find_package(Qt6 COMPONENTS CorePrivate GuiPrivate WidgetsPrivate REQUIRED)
26+
endif()
2527
else()
2628
set(VERSION_SUFFIX)
2729
find_package(QT NAMES Qt5 REQUIRED COMPONENTS Core)

0 commit comments

Comments
 (0)