We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 885b556 commit 6335933Copy full SHA for 6335933
examples/server/CMakeLists.txt
@@ -4,3 +4,9 @@ add_executable(${TARGET} server.cpp httplib.h json.hpp)
4
include(DefaultTargetOptions)
5
6
target_link_libraries(${TARGET} PRIVATE common whisper ${CMAKE_THREAD_LIBS_INIT})
7
+
8
+# Check if the compiler is MinGW
9
+if(MINGW)
10
+ # Link the necessary libraries for SSL and Winsock
11
+ target_link_libraries(${TARGET} PRIVATE -lcrypt32 -lssl -lcrypto -lws2_32)
12
+endif()
0 commit comments