Skip to content

Commit 92f4a11

Browse files
committed
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.
1 parent a04f32b commit 92f4a11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utility/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ elseif("${RF24_DRIVER}" STREQUAL "RPi") # use RPi
2525
${RF24_DRIVER}/RF24_arch_config.h
2626
DESTINATION include/RF24/utility/${RF24_DRIVER}
2727
)
28-
if(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND")
28+
if(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND" AND NOT DEFINED RF24_NO_INTERRUPT)
2929
set(RF24_LINKED_DRIVER ${LibPIGPIO} PARENT_SCOPE)
3030
message(STATUS "linking to pigpio lib for interrupt functionality")
3131
install(FILES
@@ -63,7 +63,7 @@ elseif("${RF24_DRIVER}" STREQUAL "SPIDEV") # use SPIDEV
6363
${RF24_DRIVER}/RF24_arch_config.h
6464
DESTINATION include/RF24/utility/${RF24_DRIVER}
6565
)
66-
if(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND")
66+
if(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND" AND NOT DEFINED RF24_NO_INTERRUPT)
6767
set(RF24_LINKED_DRIVER ${LibPIGPIO} PARENT_SCOPE)
6868
message(STATUS "linking to pigpio lib for interrupt functionality")
6969
install(FILES

0 commit comments

Comments
 (0)