Fix build on Windows

This commit is contained in:
François Grisez 2017-03-03 10:39:59 +01:00
parent e28e14d4bd
commit 79a8f905cb
2 changed files with 6 additions and 0 deletions

View file

@ -82,6 +82,9 @@ if(ENABLE_STATIC)
else()
set(LINPHONE_LIBS_FOR_TOOLS linphone)
endif()
if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
list(APPEND LINPHONE_LIBS_FOR_TOOLS "Ws2_32")
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

View file

@ -151,6 +151,9 @@ set(LIBS
${MEDIASTREAMER2_LIBRARIES}
${XML2_LIBRARIES}
)
if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WinddowsStore")
list(APPEND LIBS "Ws2_32")
endif()
if(ZLIB_FOUND)
list(APPEND LIBS ${ZLIB_LIBRARIES})
endif()