From 762d9f99b05d2646cfdae4a58954062e946733ad Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sat, 9 Feb 2008 00:07:25 +0000 Subject: [PATCH] cmake: FindFFmpeg simplication. --- extras/buildsystem/cmake/include/FindFFmpeg.cmake | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/extras/buildsystem/cmake/include/FindFFmpeg.cmake b/extras/buildsystem/cmake/include/FindFFmpeg.cmake index 8dd7948ee2..9e693143cb 100644 --- a/extras/buildsystem/cmake/include/FindFFmpeg.cmake +++ b/extras/buildsystem/cmake/include/FindFFmpeg.cmake @@ -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) -- 2.39.5