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_DIR1)
|
||||||
if(FFMPEG_INCLUDE_DIR2)
|
set(FFMPEG_INCLUDE_DIR ${FFMPEG_INCLUDE_DIR1})
|
||||||
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})
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_library(FFMPEG_avformat_LIBRARY avformat
|
find_library(FFMPEG_avformat_LIBRARY avformat
|
||||||
@ -292,4 +270,4 @@ endif()
|
|||||||
if(COMMAND set_package_properties)
|
if(COMMAND set_package_properties)
|
||||||
set_package_properties(FFMPEG PROPERTIES DESCRIPTION "A complete, cross-platform solution to record, convert and stream audio and video")
|
set_package_properties(FFMPEG PROPERTIES DESCRIPTION "A complete, cross-platform solution to record, convert and stream audio and video")
|
||||||
set_package_properties(FFMPEG PROPERTIES URL "http://ffmpeg.org/")
|
set_package_properties(FFMPEG PROPERTIES URL "http://ffmpeg.org/")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user