Commit 79a8f905 authored by François Grisez's avatar François Grisez

Fix build on Windows

parent e28e14d4
......@@ -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")
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment