Update CMakeLists.txt

This commit is contained in:
Zhi Guan
2024-04-17 15:47:28 +08:00
parent b01ad79475
commit fbad76e807

View File

@@ -483,6 +483,7 @@ endif()
check_symbol_exists(getentropy "unistd.h" HAVE_GETENTROPY) check_symbol_exists(getentropy "unistd.h" HAVE_GETENTROPY)
if (WIN32) if (WIN32)
add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS)
list(APPEND src src/rand_win.c src/http_win.c) list(APPEND src src/rand_win.c src/http_win.c)
elseif (APPLE) elseif (APPLE)
list(APPEND src src/rand_apple.c src/http.c) list(APPEND src src/rand_apple.c src/http.c)