Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cmake/FindFFmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ if (TRUE)
message(STATUS "Libs: ${${_component}_LIBRARIES} | ${PC_${_component}_LIBRARIES}")

# message(STATUS "Required component ${_component} present.")
set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${${_component}_LIBRARIES})
set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${${_component}_LIBRARIES} ${PC_${_component}_LINK_LIBRARIES})
set(FFMPEG_DEFINITIONS ${FFMPEG_DEFINITIONS} ${${_component}_DEFINITIONS})

list(APPEND FFMPEG_INCLUDE_DIRS ${${_component}_INCLUDE_DIRS})
Expand All @@ -246,9 +246,10 @@ if (TRUE)
set_target_properties(FFmpeg::${_lowerComponent} PROPERTIES
INTERFACE_COMPILE_OPTIONS "${${_component}_DEFINITIONS}"
INTERFACE_INCLUDE_DIRECTORIES ${${_component}_INCLUDE_DIRS}
INTERFACE_LINK_LIBRARIES "${${_component}_LIBRARY} ${${_component}_LIBRARIES} ${PC_${_component}_LIBRARIES}"
INTERFACE_LINK_LIBRARIES "${${_component}_LIBRARY};${${_component}_LIBRARIES};${PC_${_component}_LINK_LIBRARIES}"
IMPORTED_LINK_INTERFACE_MULTIPLICITY 3)
endif()
list(APPEND _FFMPEG_COMPONENT_TARGETS FFmpeg::${_lowerComponent})
else()
# message(STATUS "Required component ${_component} missing.")
endif()
Expand All @@ -271,7 +272,7 @@ if (NOT TARGET FFmpeg::FFmpeg)
set_target_properties(FFmpeg PROPERTIES
INTERFACE_COMPILE_OPTIONS "${FFMPEG_DEFINITIONS}"
INTERFACE_INCLUDE_DIRECTORIES "${FFMPEG_INCLUDE_DIRS}"
INTERFACE_LINK_LIBRARIES "${FFMPEG_LIBRARIES}")
INTERFACE_LINK_LIBRARIES "${_FFMPEG_COMPONENT_TARGETS}")
add_library(FFmpeg::FFmpeg ALIAS FFmpeg)
endif()

Expand Down
Loading