File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,16 @@ option(FORCE_BUILD_QT5 "Force Qt5 build instead of Qt6" OFF)
22
22
23
23
if (FORCE_BUILD_QT5 )
24
24
find_package (Qt5 NAMES Qt5 REQUIRED COMPONENTS Core )
25
+ string (REPLACE "." ";" qt_version_list ${Qt5_VERSION} )
25
26
else ()
26
27
find_package (Qt6 NAMES Qt6 REQUIRED COMPONENTS Core )
28
+ string (REPLACE "." ";" qt_version_list ${Qt6_VERSION} )
27
29
endif ()
30
+ list (GET qt_version_list 0 QT_VERSION_MAJOR )
31
+ list (GET qt_version_list 1 QT_VERSION_MINOR )
32
+ list (GET qt_version_list 1 QT_VERSION_PATCH )
33
+ message (STATUS "QT_VERSION_MAJOR = ${QT_VERSION_MAJOR} " )
34
+
28
35
find_package (Python3 COMPONENTS Development )
29
36
30
37
set (PYTHONQT_SUFFIX Qt${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}-Python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR} )
You can’t perform that action at this time.
0 commit comments