From 8ff79c291caf4ffa595c895131da6cf346f05636 Mon Sep 17 00:00:00 2001 From: overwriter <9856mmm@gmail.com> Date: Sat, 26 Oct 2024 20:09:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A1=A5=E5=85=85=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 774c8f7..fde63b4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,7 +7,7 @@ if(MUSICAPI_TEST) add_subdirectory(Test) endif() find_package(QT NAMES Qt6 Qt5) -find_package(Qt${QT_VERSION_MAJOR} COMPONENTS HttpServer) +find_package(Qt${QT_VERSION_MAJOR} OPTIONAL_COMPONENTS HttpServer) if(Qt${QT_VERSION_MAJOR}HttpServer_FOUND) # Qt6.4后才支持QHttpServer库 if(MUSICAPI_SERVER)