Merge pull request #1396 from dudamao/master

add link libraries ws2_32, fix win32 compile error.
This commit is contained in:
Zhi Guan
2023-02-21 12:34:48 +08:00
committed by GitHub

View File

@@ -300,6 +300,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")