We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd96ee0 commit cf6dbccCopy full SHA for cf6dbcc
src/ffmpeg.imageio/CMakeLists.txt
@@ -3,6 +3,26 @@
3
# https://github.com/OpenImageIO/oiio
4
5
if (FFmpeg_FOUND)
6
+ # TODO - remove NOT
7
+ if (NOT LINKSTATIC)
8
+ if (WIN32)
9
+ set (STATIC_SUFFIXES .lib .a)
10
+ else ()
11
+ set (STATIC_SUFFIXES .a .so)
12
+ endif ()
13
+
14
+ foreach(ffmpeg_library IN LISTS FFMPEG_LIBRARIES)
15
+ get_filename_component(_ext ${ffmpeg_library} LAST_EXT) # .txt
16
+ list (FIND STATIC_SUFFIXES ${_ext} _index)
17
+ if (${_index} GREATER -1)
18
+ message(STATUS "found static version of ffmpeg library ${ffmpeg_library}")
19
+ message(STATUS "...")
20
+ endif()
21
+ endforeach()
22
23
24
25
26
add_oiio_plugin (ffmpeginput.cpp
27
INCLUDE_DIRS ${FFMPEG_INCLUDES}
28
LINK_LIBRARIES ${FFMPEG_LIBRARIES}
0 commit comments