Skip to content

Commit

Permalink
reduce duplicate messages in cmake output
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jan 23, 2022
1 parent 51107f7 commit 3e4404b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples_RPi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ find_library(RF24Network rf24network REQUIRED)
message(STATUS "using RF24Network library: ${RF24Network}")

find_library(LibPIGPIO pigpio)
if (NOT "${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND")
message(STATUS "linking to ${LibPIGPIO} for interrupt support")
endif()

foreach(example ${EXAMPLES_LIST})
# make a target
Expand All @@ -28,7 +31,6 @@ foreach(example ${EXAMPLES_LIST})
if ("${LibPIGPIO}" STREQUAL "LibPIGPIO-NOTFOUND")
target_link_libraries(${example} PUBLIC ${RF24} pthread ${RF24Network})
else()
message(STATUS "linking to ${LibPIGPIO} for interrupt support")
target_link_libraries(${example} PUBLIC ${RF24} pthread ${RF24Network} ${LibPIGPIO})
endif()
endforeach()

0 comments on commit 3e4404b

Please sign in to comment.