From 75e1104d92002a79a5363d27f151c45574f93ecc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 18 Apr 2011 07:11:40 +0000 Subject: cmake - allow building blenderplayer with redcode. - when ffmpeg is enabled remove strict compiler errors for imbuf and blenkernel since its hard to avoid these warnings across ffmpeg versions. --- source/blender/blenkernel/CMakeLists.txt | 5 +++++ source/blender/imbuf/CMakeLists.txt | 5 +++++ source/blenderplayer/CMakeLists.txt | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt index aaa596862c5..47d393559f4 100644 --- a/source/blender/blenkernel/CMakeLists.txt +++ b/source/blender/blenkernel/CMakeLists.txt @@ -24,6 +24,11 @@ # # ***** END GPL LICENSE BLOCK ***** +if(WITH_CODEC_FFMPEG) + # FFMPEG gives warnigns which are hard to avoid across multiple versions. + remove_strict_flags() +endif() + set(INC . ../avi diff --git a/source/blender/imbuf/CMakeLists.txt b/source/blender/imbuf/CMakeLists.txt index c2c9c89ad10..6404ae3de75 100644 --- a/source/blender/imbuf/CMakeLists.txt +++ b/source/blender/imbuf/CMakeLists.txt @@ -24,6 +24,11 @@ # # ***** END GPL LICENSE BLOCK ***** +if(WITH_CODEC_FFMPEG) + # FFMPEG gives warnigns which are hard to avoid across multiple versions. + remove_strict_flags() +endif() + set(INC . ../avi diff --git a/source/blenderplayer/CMakeLists.txt b/source/blenderplayer/CMakeLists.txt index 5b7a08be2fd..1f796e86693 100644 --- a/source/blenderplayer/CMakeLists.txt +++ b/source/blenderplayer/CMakeLists.txt @@ -113,7 +113,8 @@ endif() bf_blenlib bf_imbuf_cineon bf_imbuf_openexr - extern_openjpeg + extern_openjpeg + extern_redcode bf_imbuf_dds bf_readblenfile bf_dna -- cgit v1.2.3