Commit c5732a10 for libheif
commit c5732a10f6f49b12ff79948f82d2083a15ea78ff
Author: Torusrxxx <torusrxxx@users.noreply.github.com>
Date: Wed Sep 9 12:27:55 2026 +0000
Compile heifio just for examples and testing
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ca53f2e2..b4893877 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -604,7 +604,9 @@ else ()
set(CMAKE_CXX_VISIBILITY_PRESET default)
endif ()
-add_subdirectory(heifio)
+if(WITH_EXAMPLES OR BUILD_TESTING)
+ add_subdirectory(heifio)
+endif()
if(WITH_EXAMPLES)
add_subdirectory (examples)