Fix Windows system library dependencies for uasync
This commit is contained in:
1 parent
5152b17114
commit
9382abb6e6
2 files changed
+3
-3
No files matched your search
@@ -9,7 +9,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
${BLE_LIB}/platform_compat.c ${BLE_LIB}/socket_compat.c)
|
||||
target_include_directories(uasync PUBLIC "${BLE_LIB}")
|
||||
if(WIN32)
|
||||
target_link_libraries(uasync PUBLIC ws2_32 iphlpapi)
|
||||
target_link_libraries(uasync PUBLIC ws2_32 iphlpapi bcrypt)
|
||||
else()
|
||||
target_link_libraries(uasync PUBLIC pthread m)
|
||||
endif()
|
||||
|
||||
@@ -66,9 +66,9 @@ set_target_properties(opus_internal PROPERTIES
|
||||
|
||||
target_link_libraries(uasync PUBLIC opus_internal)
|
||||
|
||||
# WinSock вызывается в uasync (DNS/сокеты/event loop); импортная библиотека нужна после её архива.
|
||||
# uasync использует WinSock, IP Helper и BCrypt; импортные библиотеки должны идти после её архива.
|
||||
if(WIN32)
|
||||
target_link_libraries(uasync PUBLIC ws2_32)
|
||||
target_link_libraries(uasync PUBLIC ws2_32 iphlpapi bcrypt)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(uasync PRIVATE
|
||||
|
||||
Reference in new issue
Block a user