Skip to content

Commit 00e175c

Browse files
committed
cmake: Address Missing Winsock Library w/ MinGW
Addresses #268
1 parent 3fd9d8d commit 00e175c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ if (MHD_VERSION_STRING VERSION_LESS "0.9.53")
144144
set(WITH_WEBSOCKET OFF)
145145
endif ()
146146

147+
if(WIN32 AND MINGW)
148+
LIST(APPEND ULFIUS_LIBS ws2_32)
149+
endif()
150+
147151
if (WITH_WEBSOCKET)
148152
set(U_DISABLE_WEBSOCKET OFF)
149153
find_package(ZLIB REQUIRED)

0 commit comments

Comments
 (0)