diff --git a/NahidaProject.Communication/CMakeLists.txt b/NahidaProject.Communication/CMakeLists.txt index cfd19925dbe400626192c856ca43a0930d2daab5..02fb146d80c776de10c9ac49d6ce0c3aeee8a330 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 554e0a89599c24c43ccb1c2f4235aca64d3a233f..55bdfb6297427a120e362737993b73801578c262 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;