Fix linking to libav in non-default path

LIBAV_LDFLAGS has -L, LIBAV_LIBRARIES is just the names of the

I think this is not necessary for other dependencies because they
consist of a single library and go through a different path (check_lib)
that provides the full path to it. e.g. from my CMakeCache.txt:

ICONV_LIBRARIES:FILEPATH=/usr/lib/libiconv.dylib (good)
LIBAV_LIBRARIES:INTERNAL=avcodec;avformat;swscale;avutil (bad)
This commit is contained in:
comex 2015-06-21 15:36:57 -04:00
parent 700b850acd
commit 4b06089103

View File

@ -469,7 +469,7 @@ if(NOT ANDROID)
if(ENCODE_FRAMEDUMPS)
check_libav()
if(LIBAV_FOUND)
LIST(APPEND LIBS ${LIBAV_LIBRARIES})
LIST(APPEND LIBS ${LIBAV_LDFLAGS})
endif()
endif()