Skip to content

Commit cf6dbcc

Browse files
committed
basic flow is there
1 parent fd96ee0 commit cf6dbcc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/ffmpeg.imageio/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
# https://github.com/OpenImageIO/oiio
44

55
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+
endif()
23+
24+
25+
626
add_oiio_plugin (ffmpeginput.cpp
727
INCLUDE_DIRS ${FFMPEG_INCLUDES}
828
LINK_LIBRARIES ${FFMPEG_LIBRARIES}

0 commit comments

Comments
 (0)