From 9b64c53b9e65e4b8ba5c96c81e614d958467491c Mon Sep 17 00:00:00 2001 From: HeZongLun Date: Sun, 23 Nov 2025 15:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E9=80=9A=E4=BF=A1?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=9A=84=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NahidaProject.Communication/CMakeLists.txt | 8 +++++--- NahidaProject.Communication/Sources/HTTPServer.cpp | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NahidaProject.Communication/CMakeLists.txt b/NahidaProject.Communication/CMakeLists.txt index cfd1992..02fb146 100644 --- a/NahidaProject.Communication/CMakeLists.txt +++ b/NahidaProject.Communication/CMakeLists.txt @@ -6,6 +6,8 @@ SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeModules) INCLUDE(RegisterSubproject) REGISTER_SUBPROJECT("Communication" FALSE) -TARGET_LINK_LIBRARIES(NahidaProject.CommunicationTests PUBLIC ws2_32 kernel32) -TARGET_LINK_LIBRARIES(NahidaProject.Communication.IMPLEMENT PUBLIC ws2_32 kernel32) -TARGET_LINK_LIBRARIES(NahidaProject.Communication PUBLIC ws2_32 kernel32) \ No newline at end of file +IF(WIN32) + TARGET_LINK_LIBRARIES(NahidaProject.CommunicationTests PUBLIC ws2_32 kernel32) + TARGET_LINK_LIBRARIES(NahidaProject.Communication.IMPLEMENT PUBLIC ws2_32 kernel32) + TARGET_LINK_LIBRARIES(NahidaProject.Communication PUBLIC ws2_32 kernel32) +ENDIF() \ No newline at end of file diff --git a/NahidaProject.Communication/Sources/HTTPServer.cpp b/NahidaProject.Communication/Sources/HTTPServer.cpp index 554e0a8..55bdfb6 100644 --- a/NahidaProject.Communication/Sources/HTTPServer.cpp +++ b/NahidaProject.Communication/Sources/HTTPServer.cpp @@ -1,4 +1,4 @@ -#include "..\Sources\HTTPServer.h" +#include "HTTPServer.h" void NahidaProject::HTTPServer::AddRoute(const std::string& method, const std::string& path, Handler handler) { routes[method][path] = handler; -- Gitee