Skip to content

Commit 0694e49

Browse files
committed
RPI linker errors
1 parent be4676e commit 0694e49

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Arduino.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,13 @@ function(arduino_library LIB_NAME LIB_PATH)
6464
else()
6565
# For interface libraries, use INTERFACE linkage
6666
target_link_libraries(${LIB_NAME} INTERFACE arduino_emulator)
67-
endif()
67+
endif()
68+
if (USE_RPI)
69+
target_link_libraries(${LIB_NAME} PUBLIC gpiod)
70+
endif(USE_RPI)
71+
6872
endif()
73+
6974
endfunction()
7075

7176
# arduino_sketch(<name> <ino_file> [LIBRARIES <lib1> <lib2> ...] [DEFINITIONS <def1> <def2> ...])

0 commit comments

Comments
 (0)