cmake: FindFFmpeg simplication.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 9 Feb 2008 00:07:25 +0000 (00:07 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 9 Feb 2008 00:07:25 +0000 (00:07 +0000)
extras/buildsystem/cmake/include/FindFFmpeg.cmake

index 8dd7948..9e69314 100644 (file)
@@ -18,18 +18,16 @@ if (NOT FFmpeg_SEARCHED)
         set(FFmpeg_LIBRARIES "")
         foreach (library ffmpeg avcodec avformat avutil postproc swscale)
             find_library( ${library}_LIBRARY ${library} )
-            set( ${library}_LIBRARY_FOUND NOT ${${library}_LIBRARY} )
-            if (${library}_LIBRARY_FOUND)
+            if (${library}_LIBRARY)
               set(FFmpeg_LIBRARIES "${library};${FFmpeg_LIBRARIES}")
               set(FFmpeg_FOUND TRUE CACHE INTERNAL "")
-            endif (${library}_LIBRARY_FOUND)
+            endif (${library}_LIBRARY)
         endforeach (library)
         foreach (library a52 faac lame z png mp3lame twolame)
             find_library( ${library}_LIBRARY ${library} )
-            set( ${library}_LIBRARY_FOUND NOT ${${library}_LIBRARY} )
-            if (${library}_LIBRARY_FOUND)
+            if (${library}_LIBRARY)
               set(FFmpeg_LIBRARIES "${library};${FFmpeg_LIBRARIES}")
-            endif (${library}_LIBRARY_FOUND)
+            endif (${library}_LIBRARY)
         endforeach (library)
         set(FFmpeg_LIBRARIES "${FFmpeg_LIBRARIES}" CACHE INTERNAL STRING)
     endif (NOT FFmpeg_FOUND)