修复编译问题

This commit is contained in:
xiongziliang
2018-03-21 11:35:00 +08:00
parent bec36b257e
commit 30aa71cb53
4 changed files with 11 additions and 3 deletions

View File

@@ -113,6 +113,10 @@ if(NOT WIN32)
add_compile_options(-Wno-predefined-identifier-outside-function)
endif()
if(WIN32)
list(APPEND LINK_LIB_LIST ws2_32)
endif()
#编译动态库
if(NOT IOS AND NOT ANDROID)
add_library(${CMAKE_PROJECT_NAME}_shared SHARED ${SRC_LIST})