summaryrefslogtreecommitdiff
path: root/dev-embedded/avrdude/files/no-automatic-libgpiod.patch
blob: 2f6e4d9b13b839c8579d932b3e242d88f9fee0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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)