Only link lmbd dependencies to lmdb

This commit is contained in:
Arugula Bowl 2018-07-01 15:36:09 +00:00 committed by Lee Bousfield
commit d13af03e1d

View file

@ -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