Only link lmbd dependencies to lmdb
This commit is contained in:
parent
e1215358f3
commit
d13af03e1d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue