Files
gentoo/dev-embedded/avrdude/files/no-automatic-libgpiod.patch
2026-07-18 08:21:33 +01:00

14 lines
404 B
Diff

# Patch created by Quincy Fleming
# This helps to be able to control wether or not to find and build with libgpiod
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -236,7 +236,7 @@
# -------------------------------------
# Find libgpiod using pkg-config, if needed
-if(HAVE_LINUXGPIO)
+if(HAVE_LINUXGPIO AND HAVE_LIBGPIOD)
# defaults/fallbacks
set(HAVE_LIBGPIOD 0)
set(HAVE_LIBGPIOD_V2 0)