Fix linking issue with MinGW. For some reason ffmpeg needs to be enabled. Some kind...
authorAntony Riakiotakis <kalast@gmail.com>
Sat, 14 Apr 2012 21:26:50 +0000 (21:26 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Sat, 14 Apr 2012 21:26:50 +0000 (21:26 +0000)
CMakeLists.txt

index e3ce376ff7d3f74606d50b7505cf43a7e736f72f..b89ecdb014bc64e5f7d465032eba844aff28c77f 100644 (file)
@@ -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_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)
 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)