Commit d939b466 authored by Ghislain MARY's avatar Ghislain MARY

Do not include dependencies in the link interface when building a shared library.

parent 629ce646
......@@ -77,10 +77,10 @@ add_definitions(
)
set(BASE_LIBS
${ORTP_LIBRARIES}
${BCTOOLBOX_LIBRARIES} ${ORTP_LIBRARIES}
)
if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone" AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
list(APPEND BASE_LIBS ${LIBGCC} ${LIBMINGWEX} ole32 oleaut32 uuid)
list(APPEND BASE_LIBS ${LIBGCC} ${LIBMINGWEX} ole32 oleaut32 uuid Winmm Ws2_32)
endif()
if(HAVE_DLOPEN)
list(APPEND BASE_LIBS dl)
......@@ -107,7 +107,7 @@ if(ENABLE_SHARED)
# Do not version shared library on Android
set_target_properties(mediastreamer_base PROPERTIES SOVERSION ${MEDIASTREAMER_SO_VERSION})
endif()
target_link_libraries(mediastreamer_base ${BASE_LIBS})
target_link_libraries(mediastreamer_base PRIVATE ${BASE_LIBS})
add_dependencies(mediastreamer_base ms2-git-version ms2-basedescs-header)
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
......@@ -463,7 +463,7 @@ set(VOIP_LIBS
)
if(WIN32)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone" AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
list(APPEND VOIP_LIBS ${LIBGCC} ${LIBMINGWEX} ole32 oleaut32 uuid)
list(APPEND VOIP_LIBS ${LIBGCC} ${LIBMINGWEX} ole32 oleaut32 uuid Ws2_32)
if(ENABLE_VIDEO)
list(APPEND VOIP_LIBS gdi32 strmiids user32 vfw32)
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