diff --git a/examples/server/CMakeLists.txt b/examples/server/CMakeLists.txt index b6a6f8b..4087381 100644 --- a/examples/server/CMakeLists.txt +++ b/examples/server/CMakeLists.txt @@ -3,3 +3,7 @@ add_executable(${TARGET} server.cpp httplib.h json.hpp) install(TARGETS ${TARGET} RUNTIME) target_link_libraries(${TARGET} PRIVATE bark ${CMAKE_THREAD_LIBS_INIT}) + +if (WIN32) + target_link_libraries(${TARGET} PRIVATE ws2_32) +endif()