From 9eac90b8cb33ff4a7432efc7e73e0ba91c0a1eb7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 5 Mar 2009 14:33:21 +0000 Subject: [PATCH] Cleaned up FindFFmpeg.cmake --- CMakeModules/FindFFmpeg.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeModules/FindFFmpeg.cmake b/CMakeModules/FindFFmpeg.cmake index 0c3117d18..3a97a0393 100644 --- a/CMakeModules/FindFFmpeg.cmake +++ b/CMakeModules/FindFFmpeg.cmake @@ -93,9 +93,9 @@ MACRO(FFMPEG_FIND varname shortname headername) /usr/freeware/lib64 ) - IF (FFMPEG_${varname}_LIBRARIES) + IF (FFMPEG_${varname}_LIBRARIES AND FFMPEG_${varname}_INCLUDE_DIRS) SET(FFMPEG_${varname}_FOUND 1) - ENDIF(FFMPEG_${varname}_LIBRARIES) + ENDIF(FFMPEG_${varname}_LIBRARIES AND FFMPEG_${varname}_INCLUDE_DIRS) ENDMACRO(FFMPEG_FIND) @@ -126,6 +126,6 @@ IF (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND FFMPEG_LIBAVCODE ELSE (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND FFMPEG_LIBAVCODEC_FOUND AND FFMPEG_LIBAVUTIL_FOUND) - MESSAGE(STATUS "Could not find FFMPEG") +# MESSAGE(STATUS "Could not find FFMPEG") ENDIF(FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND FFMPEG_LIBAVCODEC_FOUND AND FFMPEG_LIBAVUTIL_FOUND)