mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Fix build on Windows
This commit is contained in:
parent
e28e14d4bd
commit
79a8f905cb
2 changed files with 6 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue