mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 08:56:17 +08:00
add link libraries ws2_32, fix win32 compile error.
when compiling under windows, socket function of send() and recv() is undefined. we should add link libraries.(https://stackoverflow.com/questions/2033608/mingw-linker-error-winsock)
This commit is contained in:
@@ -237,6 +237,7 @@ add_library(gmssl ${src})
|
||||
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(gmssl -lws2_32)
|
||||
elseif (APPLE)
|
||||
target_link_libraries(gmssl dl)
|
||||
target_link_libraries(gmssl "-framework Security")
|
||||
|
||||
Reference in New Issue
Block a user