Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for ffmpeg and webp locations in some Linux distros #1380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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: 7 additions & 0 deletions cmake/FindFFmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ macro(FFMPEG_FIND varname shortname headername)
find_path(FFMPEG_${varname}_INCLUDE_DIRS lib${shortname}/${headername}
PATHS
${FFMPEG_ROOT}/include
${FFMPEG_ROOT}/include/ffmpeg
$ENV{FFMPEG_DIR}/include
$ENV{FFMPEG_DIR}/include/ffmpeg
/usr/include/x86_64-linux-gnu
/usr/local/include
/usr/include/
/usr/include/ffmpeg
NO_DEFAULT_PATH
DOC "Location of FFMPEG Headers")

Expand All @@ -22,10 +25,14 @@ macro(FFMPEG_FIND varname shortname headername)
find_library(FFMPEG_${varname}_LIBRARIES
NAMES ${LIB_NAMES}
PATHS
${FFMPEG_ROOT}/lib64
${FFMPEG_ROOT}/lib
$ENV{FFMPEG_DIR}/lib64
$ENV{FFMPEG_DIR}/lib
/usr/lib/x86_64-linux-gnu
/usr/local/lib64
/usr/local/lib
/usr/lib64
/usr/lib
NO_DEFAULT_PATH
DOC "Location of FFMPEG Libs")
Expand Down
4 changes: 4 additions & 0 deletions cmake/FindWebP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ macro(WEBP_FIND varname shortname headername)
find_library(WEBP_${varname}_LIBRARIES
NAMES ${LIB_NAMES}
PATHS
${FFMPEG_ROOT}/lib64
${FFMPEG_ROOT}/lib
$ENV{FFMPEG_DIR}/lib64
$ENV{FFMPEG_DIR}/lib
/usr/lib/x86_64-linux-gnu
/usr/local/lib64
/usr/local/lib
/usr/lib64
/usr/lib
NO_DEFAULT_PATH
DOC "Location of FFMPEG Libs")
Expand Down