Skip to content

Commit

Permalink
Fix mac ffmpeg version check
Browse files Browse the repository at this point in the history
  • Loading branch information
taoboyang committed Dec 13, 2023
1 parent 8b13e07 commit 7e9d8e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/ffmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ else()
set_property(TARGET ffmpeg::${ARGV0} PROPERTY INTERFACE_LINK_LIBRARIES
${LIBRARY_LINK_LIBRARIES})
unset(LIBRARY CACHE)
if("${ARGV0}" STREQUAL "avutil")
find_ffmpeg_version(${LIBRARY_INCLUDE_DIRS} BMF_FFMPEG_VERSION)
endif()
endif()
endfunction()

Expand All @@ -106,7 +109,6 @@ else()
define_ffmpeg_target(swresample)

if(TARGET ffmpeg::avcodec)
find_ffmpeg_version(${FFMPEG_INCLUDE_DIR}/libavutil BMF_FFMPEG_VERSION)
set(FFMPEG_FOUND TRUE)
else()
set(FFMPEG_FOUND FALSE)
Expand Down

0 comments on commit 7e9d8e7

Please sign in to comment.