mdbx-cmake: try fix libmdbx-rs/issues/10.

https://github.com/vorot93/libmdbx-rs/issues/10
This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-11-08 00:42:32 +03:00
parent 8c75ed59da
commit 987509f90f

View File

@ -651,7 +651,7 @@ macro(libmdbx_setup_libs TARGET MODE)
target_link_libraries(${TARGET} ${MODE} Threads::Threads)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
target_link_libraries(${TARGET} ${MODE} ntdll advapi32)
target_link_libraries(${TARGET} ${MODE} ntdll user32 kernel32 advapi32)
if(MDBX_NTDLL_EXTRA_IMPLIB AND MDBX_WITHOUT_MSVC_CRT)
target_link_libraries(${TARGET} ${MODE} ntdll_extra)
endif()