From 34fbd17621b07041e22f53909207b2ff778bf534 Mon Sep 17 00:00:00 2001 From: Kel Modderman Date: Thu, 3 Sep 2026 21:14:54 +1000 Subject: [PATCH] Do not require libde265 at configure time The add-on includes only libheif headers and has never called libde265 directly. Requiring it blocks configuration against a system libheif that already provides HEVC, whether built in or loaded as a plugin, which is how freedesktop-sdk and several distributions ship it. de265 stays in the include path and link line when it is found, so static libheif builds that pull in libde265 are unaffected. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e54af6e..1204ff9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,8 @@ project(imagedecoder.heif) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}) find_package(Kodi REQUIRED) -find_package(de265 REQUIRED) +# optional: system libheif may provide HEVC itself; still linked when found for static builds +find_package(de265) find_package(HEIF REQUIRED) find_package(Threads REQUIRED) find_package(TinyXML2 REQUIRED)