Skip to content

Commit

Permalink
make utilities/CMakeLists.txt respect RF24_NO_IRQ (nRF24#859)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
2bndy5 committed Jul 23, 2022
1 parent ccdc571 commit 89358b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utility/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 89358b2

Please sign in to comment.