From 92f4a1120f9acbb8db48e729770927621f52115d Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Thu, 21 Jul 2022 09:12:32 -0700 Subject: [PATCH] make utilities/CMakeLists.txt respect RF24_NO_IRQ This is needed to update the pyRF24 pkg to use latest master. This does not affect RF24 lib builds because RF24_NO_IRQ is respected in the root CMakeLists.txt. But, the pyRF24 pkg doesn't actually use the root CMakeLists.txt. Instead, the pyRF24 pkg only uses utility/CMakeLists.txt. --- utility/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utility/CMakeLists.txt b/utility/CMakeLists.txt index 0f45ebea9..656c89b14 100644 --- a/utility/CMakeLists.txt +++ b/utility/CMakeLists.txt @@ -25,7 +25,7 @@ elseif("${RF24_DRIVER}" STREQUAL "RPi") # use RPi ${RF24_DRIVER}/RF24_arch_config.h DESTINATION include/RF24/utility/${RF24_DRIVER} ) - if(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND") + if(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND" AND NOT DEFINED RF24_NO_INTERRUPT) set(RF24_LINKED_DRIVER ${LibPIGPIO} PARENT_SCOPE) message(STATUS "linking to pigpio lib for interrupt functionality") install(FILES @@ -63,7 +63,7 @@ elseif("${RF24_DRIVER}" STREQUAL "SPIDEV") # use SPIDEV ${RF24_DRIVER}/RF24_arch_config.h DESTINATION include/RF24/utility/${RF24_DRIVER} ) - if(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND") + if(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND" AND NOT DEFINED RF24_NO_INTERRUPT) set(RF24_LINKED_DRIVER ${LibPIGPIO} PARENT_SCOPE) message(STATUS "linking to pigpio lib for interrupt functionality") install(FILES