From 4b060891032bf0d158fb9b2a91a82c45f1fd223f Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 21 Jun 2015 15:36:57 -0400 Subject: [PATCH] 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) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a8fc1f0ae7..f7afb60cee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()