diff --git a/CMakeLists.txt b/CMakeLists.txt index f0d75087..7820242e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,10 +40,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON) find_package(Threads REQUIRED) set (PLATFORM_LIBS ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS}) -if (WIN32) - set (PLATFORM_LIBS "${PLATFORM_LIBS} Ws2_32 mswsock iphlpapi ntdll") -endif (WIN32) - if (WIN32) add_definitions(-D_WIN32_WINNT=0x0600 -DWINVER=0x0600 @@ -231,6 +227,10 @@ add_library (lmdb lmdb/libraries/liblmdb/mdb.c lmdb/libraries/liblmdb/midl.c) +if (WIN32) + target_link_libraries(lmdb ntdll) +endif() + add_library (blake2 blake2/blake2-config.h blake2/blake2-impl.h