summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindFFmpeg.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/FindFFmpeg.cmake b/cmake/FindFFmpeg.cmake
index ead6f7690..8a1d8d713 100644
--- a/cmake/FindFFmpeg.cmake
+++ b/cmake/FindFFmpeg.cmake
@@ -196,7 +196,13 @@ function(__ffmpeg_internal_set_dependencies lib)
foreach(dependency ${deps_no_suffix})
string(REGEX REPLACE ${prefix_l} "" dependency ${dependency})
if(NOT ${lib} STREQUAL ${dependency})
- target_link_libraries(FFmpeg::${lib} INTERFACE ${dependency})
+ # Apply dynamic symbols resolve for Linux build only. We might add Android and QNX as well.
+ if(LINUX AND (${dependency} STREQUAL "ssl" OR ${dependency} STREQUAL "crypto"))
+ # TODO: implement OpenSsl headers check (or reuse WrapOpenSSLHeaders_FOUND)
+ set(DYNAMIC_RESOLVE_OPENSSL_SYMBOLS TRUE CACHE INTERNAL "")
+ else()
+ target_link_libraries(FFmpeg::${lib} INTERFACE ${dependency})
+ endif()
endif()
endforeach()