fixed problem with finding ffmpeg on linux and macos
This commit is contained in:
parent
edb103651e
commit
e22a2678da
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user