fixed problem with finding ffmpeg on linux and macos

This commit is contained in:
selim mustafaev 2017-11-20 01:47:39 +03:00
parent edb103651e
commit e22a2678da

View File

@ -119,29 +119,7 @@ find_path(FFMPEG_INCLUDE_DIR6 swresample.h
)
if(FFMPEG_INCLUDE_DIR1)
if(FFMPEG_INCLUDE_DIR2)
if(FFMPEG_INCLUDE_DIR3)
set(FFMPEG_INCLUDE_DIR ${FFMPEG_INCLUDE_DIR1}
${FFMPEG_INCLUDE_DIR2}
${FFMPEG_INCLUDE_DIR3})
endif()
endif()
endif()
if(FFMPEG_INCLUDE_DIR4)
set(FFMPEG_INCLUDE_DIR ${FFMPEG_INCLUDE_DIR}
${FFMPEG_INCLUDE_DIR4})
endif()
if(FFMPEG_INCLUDE_DIR5)
set(FFMPEG_INCLUDE_DIR ${FFMPEG_INCLUDE_DIR}
${FFMPEG_INCLUDE_DIR5}
${FFMPEG_INCLUDE_DIR5}/..)
endif()
if(FFMPEG_INCLUDE_DIR6)
set(FFMPEG_INCLUDE_DIR ${FFMPEG_INCLUDE_DIR}
${FFMPEG_INCLUDE_DIR6})
set(FFMPEG_INCLUDE_DIR ${FFMPEG_INCLUDE_DIR1})
endif()
find_library(FFMPEG_avformat_LIBRARY avformat