]> git.sesse.net Git - vlc/blobdiff - extras/buildsystem/cmake/include/FindFFmpeg.cmake
cmake: Don't use poll() on Mac OS X, as it can't poll a tty properly.
[vlc] / extras / buildsystem / cmake / include / FindFFmpeg.cmake
index 8dd7948ee2d81441d6f53ae4e1641e7389d097fe..9e693143cb1b198fdaae383bbacb077c32c25e18 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)