diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 93e59f4..daacb69 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -69,7 +69,7 @@ endif() if("${RF24_DRIVER}" STREQUAL "MRAA" OR "${RF24_DRIVER}" STREQUAL "wiringPi") message(STATUS "skipping gwNodeInt example because it is incompatible with selected driver") -elseif(NOT DEFINED RF24_NO_INTERRUPT) +elseif(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND" AND NOT DEFINED RF24_NO_INTERRUPT) add_subdirectory(gwNodeInt) endif() @@ -80,7 +80,7 @@ if(BUILD_NCURSES_EXAMPLE) add_subdirectory(ncurses) if("${RF24_DRIVER}" STREQUAL "MRAA" OR "${RF24_DRIVER}" STREQUAL "wiringPi") message(STATUS "skipping ncursesInt example because it is incompatible with selected driver") - elseif(NOT DEFINED RF24_NO_INTERRUPT) + elseif(NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND" AND NOT DEFINED RF24_NO_INTERRUPT) add_subdirectory(ncursesInt) endif() endif()