Skip to content

Commit

Permalink
cmake : fix server example building on MSYS2 environments (Windows) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
przemoc committed Apr 22, 2024
1 parent 1786f23 commit 964467c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 964467c

Please sign in to comment.