mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
Fixed FFMPEG not found error
FFmpeg doesn't support find_package in CMake, instead you have to write this for it to work
This commit is contained in:
parent
4e3254e843
commit
2b5657d36f
@ -16,7 +16,8 @@ find_package(GLUT REQUIRED)
|
||||
find_package(ZLIB REQUIRED)
|
||||
find_package(SDL REQUIRED)
|
||||
find_package(LZ4 REQUIRED)
|
||||
find_package(FFMPEG REQUIRED)
|
||||
find_path(AVCODEC_INCLUDE_DIR libavcodec/avcodec.h)
|
||||
find_library(AVCODEC_LIBRARY avcodec)
|
||||
find_package(FreeImage REQUIRED)
|
||||
|
||||
|
||||
@ -218,4 +219,4 @@ check_function_exists(XSetIOErrorExitHandler HAVE_XSETIOERROREXITHANDLER)
|
||||
|
||||
if(HAVE_XSETIOERROREXITHANDLER)
|
||||
add_compile_definitions(HAVE_XSETIOERROREXITHANDLER=1)
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user