]> git.sesse.net Git - vlc/blobdiff - extras/buildsystem/cmake/include/config.cmake
cmake/config.cmake: Look for postproc/postprocess.h or libpostproc/postprocess.h.
[vlc] / extras / buildsystem / cmake / include / config.cmake
index 38b472bc469f44ce717a00f4dfdf7fd7e62199f5..f79badbc545f8ea7d8b72fb27ea89750bb91edf3 100644 (file)
@@ -464,12 +464,11 @@ if(FFmpeg_FOUND)
   set( CMAKE_REQUIRED_FLAGS_saved ${CMAKE_REQUIRED_FLAGS} )
   set( CMAKE_REQUIRED_FLAGS ${FFmpeg_CFLAGS} )
 
-  vlc_check_include_files (ffmpeg/avcodec.h)
-  vlc_check_include_files (ffmpeg/avutil.h)
-  vlc_check_include_files (ffmpeg/swscale.h)
-  check_include_files (swscale.h HAVE_LIBSWSCALE_TREE)
-  
-  check_include_files ("stdint.h;postproc/postprocess.h" HAVE_POSTPROC_POSTPROCESS_H)
+  vlc_check_include_files (ffmpeg/avcodec.h libavcodec/avcodec.h)
+  vlc_check_include_files (ffmpeg/avutil.h libavutil/avutil.h)
+  vlc_check_include_files (ffmpeg/swscale.h libswscale/swscale.h)
+  vlc_check_include_files (postproc/postprocess.h libpostproc/postprocess.h)
+
   vlc_enable_modules(ffmpeg)
   vlc_add_module_compile_flag(ffmpeg ${FFmpeg_CFLAGS})
   vlc_module_add_link_libraries(ffmpeg ${FFmpeg_LIBRARIES})