fix mingw dont work

This commit is contained in:
朱子楚\zhuzi 2023-05-23 20:12:00 +08:00
parent 7ae41c4c9e
commit 0f49463bbf
1 changed files with 0 additions and 1 deletions

View File

@ -1358,7 +1358,6 @@ endfunction()
function(query_qt_library_info)
cmake_parse_arguments(QT_ARGS "" "STATIC;SHARED;VERSION" "" ${ARGN})
find_package(QT NAMES Qt6 Qt5 QUIET COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} QUIET COMPONENTS Core)
if(NOT (Qt6_FOUND OR Qt5_FOUND))
message(AUTHOR_WARNING "You need to install the QtCore module first to be able to query Qt library information.")
return()