From 854c4903ebf7e5236775699616629cc954f75d32 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Mon, 12 Sep 2011 18:01:45 +0200 Subject: [PATCH] Only link against libav if it's available. --- Source/Core/DolphinWX/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinWX/CMakeLists.txt b/Source/Core/DolphinWX/CMakeLists.txt index 5fc433009f..f38e791cd0 100644 --- a/Source/Core/DolphinWX/CMakeLists.txt +++ b/Source/Core/DolphinWX/CMakeLists.txt @@ -9,12 +9,13 @@ set(LIBS core sfml-network SDL GL - avcodec - avformat - swscale ${XRANDR_LIBRARIES} ${X11_LIBRARIES}) +if(LIBAV_FOUND) + set(LIBS ${LIBS} ${LIBAV_LIBRARIES}) +endif() + if(wxWidgets_FOUND) set(SRCS Src/ARCodeAddEdit.cpp Src/AboutDolphin.cpp