vcpkg/ports/libsrt/fix-tool.patch

31 lines
1.2 KiB
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e8062a..2277e33 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1300,11 +1300,13 @@ if (ENABLE_APPS)
# Applications
- srt_add_application(srt-live-transmit ${VIRTUAL_srtsupport})
+ srt_add_application(srt-live-transmit ${VIRTUAL_srtsupport} ${VIRTUAL_srt})
+ target_link_libraries(srt-live-transmit ${SSL_LIBRARIES})
if (DEFINED EXTRA_stransmit)
set_target_properties(srt-live-transmit PROPERTIES COMPILE_FLAGS "${EXTRA_stransmit}")
endif()
- srt_add_application(srt-file-transmit ${VIRTUAL_srtsupport})
+ srt_add_application(srt-file-transmit ${VIRTUAL_srtsupport} ${VIRTUAL_srt})
+ target_link_libraries(srt-file-transmit ${SSL_LIBRARIES})
if (MINGW)
# FIXME: with MINGW, it fails to build apps that require C++11
@@ -1313,7 +1315,8 @@ if (ENABLE_APPS)
else()
# srt-multiplex temporarily blocked
#srt_add_application(srt-multiplex ${VIRTUAL_srtsupport})
- srt_add_application(srt-tunnel ${VIRTUAL_srtsupport})
+ srt_add_application(srt-tunnel ${VIRTUAL_srtsupport} ${VIRTUAL_srt})
+ target_link_libraries(srt-tunnel ${SSL_LIBRARIES})
target_compile_definitions(srt-tunnel PUBLIC -DSRT_ENABLE_VERBOSE_LOCK)
endif()