修复编译问题

This commit is contained in:
xiongziliang 2018-03-21 16:16:04 +08:00
parent 7a9a63c812
commit fe779bc5dc

View File

@ -81,10 +81,10 @@ add_definitions(-DENABLE_RING_USEBUF)
add_library(zltoolkit STATIC ${ToolKit_src_list})
add_library(zlmediakit STATIC ${MediaKit_src_list})
if (NOT WIN32)
list(APPEND LINK_LIB_LIST pthread)
else()
if (WIN32)
list(APPEND LINK_LIB_LIST WS2_32 Iphlpapi shlwapi)
else(LINUX and NOT ANDROID)
list(APPEND LINK_LIB_LIST pthread)
endif ()
message(STATUS "linked libraries:${LINK_LIB_LIST}")