From 8d665ccdcc8c8d325b93a0ea089fcda676734611 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Sat, 14 Apr 2012 21:26:50 +0000 Subject: Fix linking issue with MinGW. For some reason ffmpeg needs to be enabled. Some kind of bizarre linking order issue seems to be the case but since it touches so many areas of the code I prefer to simply enable by default. --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e3ce376ff7d..b89ecdb014b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,7 +194,14 @@ option(WITH_IMAGE_REDCODE "Enable RedCode Image Support" OFF) option(WITH_IMAGE_FRAMESERVER "Enable image FrameServer Support for rendering" ON) # Audio/Video format support -option(WITH_CODEC_FFMPEG "Enable FFMPeg Support (http://ffmpeg.org)" OFF) +if(MINGW) + set(PLATFORM_DEFAULT ON) +else() + set(PLATFORM_DEFAULT OFF) +endif() +option(WITH_CODEC_FFMPEG "Enable FFMPeg Support (http://ffmpeg.org)" (PLATFORM_DEFAULT) +unset(PLATFORM_DEFAULT) + option(WITH_CODEC_SNDFILE "Enable libsndfile Support (http://www.mega-nerd.com/libsndfile)" OFF) if(APPLE OR (WIN32 AND NOT UNIX)) option(WITH_CODEC_QUICKTIME "Enable Quicktime Support" OFF) -- cgit v1.2.3