fix FindFFmpeg.cmake: locating avcodec not using pkgconfig variable

This commit is contained in:
Mark Karpeles
2020-02-28 00:21:29 +09:00
committed by akallabeth
parent dda5d4b128
commit bf94b03f24

View File

@@ -19,7 +19,7 @@ endif(PKG_CONFIG_FOUND)
# avcodec
find_path(AVCODEC_INCLUDE_DIR libavcodec/avcodec.h PATHS ${AVCODEC_INCLUDE_DIRS})
find_library(AVCODEC_LIBRARY avcodec PATHS $ {AVCODEC_LIBRARY_DIRS})
find_library(AVCODEC_LIBRARY avcodec PATHS ${AVCODEC_LIBRARY_DIRS})
# avutil
find_path(AVUTIL_INCLUDE_DIR libavutil/avutil.h PATHS ${AVUTIL_INCLUDE_DIRS})