From ff12533018431b0fa57bc3f521266bfaf7a01839 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 1 Nov 2025 18:25:50 +0000 Subject: [PATCH] ffmpeg as well Signed-off-by: lizzie --- CMakeModules/FindFFmpeg.cmake | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeModules/FindFFmpeg.cmake b/CMakeModules/FindFFmpeg.cmake index 5cb1f3c8a4..d93408f6d9 100644 --- a/CMakeModules/FindFFmpeg.cmake +++ b/CMakeModules/FindFFmpeg.cmake @@ -75,16 +75,16 @@ function(find_ffmpeg LIBNAME) ) else() list(APPEND INCLUDE_PATHS - /usr/local/include/ffmpeg - /usr/local/include/lib${LIBNAME} - /usr/include/ffmpeg - /usr/include/lib${LIBNAME} - /usr/include/ffmpeg/lib${LIBNAME} + ${CMAKE_SYSROOT}/usr/local/include/ffmpeg + ${CMAKE_SYSROOT}/usr/local/include/lib${LIBNAME} + ${CMAKE_SYSROOT}/usr/include/ffmpeg + ${CMAKE_SYSROOT}/usr/include/lib${LIBNAME} + ${CMAKE_SYSROOT}/usr/include/ffmpeg/lib${LIBNAME} ) list(APPEND LIB_PATHS - /usr/local/lib - /usr/lib + ${CMAKE_SYSROOT}/usr/local/lib + ${CMAKE_SYSROOT}/usr/lib ) endif()