Skip to content

Commit

Permalink
refactor: 补充修改
Browse files Browse the repository at this point in the history
  • Loading branch information
s12mmm3 committed Oct 26, 2024
1 parent f1fd91c commit 8ff79c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ff79c2

Please sign in to comment.