forked from qt-creator/qt-creator
CMake build: Remove usages of Qt5_VERSION
and remove checks for Qt < 6.2, since that is our minimum version. Except for sdktool and qml2puppet. Change-Id: Id36cd1a15a5a6e5480e4ae5d0a8ffaea4b2a1864 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -304,7 +304,8 @@ function(add_qtc_library name)
|
||||
endif()
|
||||
|
||||
get_target_property(have_automoc_prop ${name} AUTOMOC)
|
||||
if("${Qt5_VERSION}" VERSION_GREATER_EQUAL "6.2.0" AND "${have_automoc_prop}")
|
||||
# check for Qt 6 is needed because sdktool & qml2puppet still build with Qt 5
|
||||
if(Qt6_VERSION AND "${have_automoc_prop}")
|
||||
qt_extract_metatypes(${name})
|
||||
endif()
|
||||
endfunction(add_qtc_library)
|
||||
|
||||
Reference in New Issue
Block a user