diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2012-04-15 01:26:50 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2012-04-15 01:26:50 +0400 |
commit | 8d665ccdcc8c8d325b93a0ea089fcda676734611 (patch) | |
tree | 9576bcdaf740bb2024216eaab81082c6e5b8cba2 | |
parent | 73a77650d0ffdc372fbcb308590faf6a38337be8 (diff) |
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.
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
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) |