Commit 06fe038d authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

cmake: Properly link to swscale.

parent acb74148
......@@ -16,7 +16,7 @@ if (NOT FFmpeg_SEARCHED)
if (NOT FFmpeg_FOUND)
set(FFmpeg_LIBRARIES "")
foreach (library ffmpeg avcodec avformat avutil postproc)
foreach (library ffmpeg avcodec avformat avutil postproc swscale)
find_library( ${library}_LIBRARY ${library} )
set( ${library}_LIBRARY_FOUND NOT ${${library}_LIBRARY} )
if (${library}_LIBRARY_FOUND)
......
......@@ -196,7 +196,9 @@ if(APPLE)
include( ${CMAKE_SOURCE_DIR}/cmake/vlc_find_frameworks.cmake )
if(ENABLE_NO_SYMBOL_CHECK)
set(DYNAMIC_LOOKUP "-undefined dynamic_lookup" CACHE INTERNAL STRING)
set(DYNAMIC_LOOKUP "-undefined dynamic_lookup")
else(ENABLE_NO_SYMBOL_CHECK)
set(DYNAMIC_LOOKUP)
endif(ENABLE_NO_SYMBOL_CHECK)
set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS
"${CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS} ${DYNAMIC_LOOKUP}")
......@@ -371,6 +373,8 @@ find_package(FFmpeg)
if(FFmpeg_FOUND)
set(CMAKE_EXTRA_INCLUDE_FILES stdint.h)
vlc_check_include_files (ffmpeg/avcodec.h)
vlc_check_include_files (ffmpeg/avutil.h)
vlc_check_include_files (ffmpeg/swscale.h)
vlc_check_include_files (postproc/postprocess.h)
set(CMAKE_EXTRA_INCLUDE_FILES)
vlc_enable_modules(ffmpeg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment