cmake: Add hint for ffmpeg headers on Linux

Apparently some distros put it here instead - maybe this should use 
pkg-config...
This commit is contained in:
Ash Logan 2022-01-24 08:50:57 +11:00 committed by James
parent b12218a0a9
commit 8773910033

View file

@ -1,5 +1,5 @@
macro(find_component COMPONENT LIBRARY HEADER)
find_path(${COMPONENT}_INCLUDE_DIR NAMES "${HEADER}")
find_path(${COMPONENT}_INCLUDE_DIR NAMES "${HEADER}" HINTS "/usr/include/ffmpeg")
find_library(${COMPONENT}_LIBRARY NAMES "${LIBRARY}")
if(${COMPONENT}_INCLUDE_DIR AND ${COMPONENT}_LIBRARY)