Could not find a configuration file for package "QT" that is compatible
with requested version "".
The following configuration files were considered but not accepted:
git上下载的qxmpp源码,执行camke ..就这样,请问一下怎么解决
# Qt
if(NOT DEFINED QT_VERSION_MAJOR)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network Xml)
endif()
message("-- Choosing Qt ${QT_VERSION_MAJOR}")
find_package(Qt${QT_VERSION_MAJOR} 5.15.0 REQUIRED COMPONENTS Core Network Xml)

20 set(CMAKE_MODULE_PATH SCMAKE_MODULE_PATH] ISIPROJECT_SOURCE_DIR/cmake/module
21
22
23 Qt
24 if(NOT DEFINED QT_VERSION_MAJOR)
25 find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS NetworkXml)
26 endif()
27 essageC ("-- Choosing Qt SQT_VERSION_MAJORj")
28 find_package(QtsLQT_VERSION_MAJOR 5.15.0 REQUIRED COMPONENTS Core Network Xml
29
30 #OCA(optional)
31 find_package(Qca-qts QT_VERSION_MAJOR] QUIET)
Termina 回Shift+EsC
cmd区
Configuring incompletey errors occurred!
D:qt6.0qxmpp\build>cmake·.
日回 -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.22631.
CMake Error at CMakeLists.txt:25(find package):
Could not find a configuration file for package "QT" that is compatible
with requested versionW.
The following configuration files were considered but not accepted:
D:/qt6.0/6.2.4/mingw_64/1ib/cmake/Qt6/Qt6Config.cmake,version:6.2.4(64bit)
Configuring incompletey errors occurred!
D:1qt6.0lqxmppVbuild>
CSDN@o18_99_1