Skip to content

Commit

Permalink
fix: Typo in FFMpeg find module
Browse files Browse the repository at this point in the history
This fixes build failures on systems where the FFMpeg headers are
located under an additional subfolder within `/usr/include`.

Fixes #34
  • Loading branch information
gmbeard committed Jul 21, 2024
1 parent 165afe2 commit 8e17478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .versioning/changes/tDzfsWLvKj.patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes an issue where builds would fail if the FFMpeg headers are located under a subfolder within `/usr/include` (thanks: @SleepingPanda)
2 changes: 1 addition & 1 deletion cmake/FindFFMpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function(try_find_ffmpeg_targets)
)

foreach(FFMPEG_COMPONENT ${EXPORT_FFMPEG_NAMES})
pkg_check_modules(PC_${FFMPEG_COMPONENT}_CODEC QUIET "lib${FFMPEG_COMPONENT}")
pkg_check_modules(PC_${FFMPEG_COMPONENT} QUIET "lib${FFMPEG_COMPONENT}")

find_path(FFMpeg_${FFMPEG_COMPONENT}_INCLUDE_DIR
NAMES ${FFMPEG_COMPONENT}.h
Expand Down

0 comments on commit 8e17478

Please sign in to comment.