Commit bd71aac0 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Complete compilation of oRTP with CMake when compiling with Visual Studio.

parent f8ad758d
......@@ -28,8 +28,21 @@ else()
endif()
if(MSVC)
# Use temporary CMake build scripts for Windows. TODO: Port fully to CMake.
set(EP_ortp_DEPENDENCIES EP_srtp)
set(EP_ortp_CMAKE_OPTIONS )
set(EP_ortp_LINKING_TYPE "-DENABLE_STATIC=0")
set(EP_ortp_DEPENDENCIES )
if(${ENABLE_SRTP})
list(APPEND EP_ortp_CMAKE_OPTIONS "-DENABLE_SRTP=1")
list(APPEND EP_ortp_DEPENDENCIES EP_srtp)
else()
list(APPEND EP_ortp_CMAKE_OPTIONS "-DENABLE_SRTP=0")
endif()
if(${ENABLE_ZRTP})
list(APPEND EP_ortp_CMAKE_OPTIONS "-DENABLE_ZRTP=1")
list(APPEND EP_ortp_DEPENDENCIES EP_bzrtp)
else()
list(APPEND EP_ortp_CMAKE_OPTIONS "-DENABLE_ZRTP=0")
endif()
set(EP_ortp_EXTRA_LDFLAGS "/SAFESEH:NO")
else()
set(EP_ortp_BUILD_METHOD "autotools")
......
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