cmake macro to set less strict flags per file - remove_strict_flags_file(file, file...)
[blender.git] / source / blender / imbuf / CMakeLists.txt
index 1b190ae..a03d6ce 100644 (file)
 #
 # ***** 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
@@ -160,6 +155,12 @@ if(WITH_CODEC_FFMPEG)
                ${FFMPEG_INCLUDE_DIRS}
        )
        add_definitions(-DWITH_FFMPEG)
+
+       remove_strict_flags_file(
+               intern/indexer.c
+               intern/util.c
+               intern/anim_movie.c
+       )
 endif()
 
 if(WITH_IMAGE_DDS)