File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
examples/using-arduino-library Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,6 @@ function(arduino_library LIB_NAME LIB_PATH)
65
65
# For interface libraries, use INTERFACE linkage
66
66
target_link_libraries (${LIB_NAME} INTERFACE arduino_emulator)
67
67
endif ()
68
- if (USE_RPI)
69
- target_link_libraries (${LIB_NAME} PUBLIC gpiod)
70
- endif (USE_RPI)
71
68
72
69
endif ()
73
70
@@ -122,9 +119,5 @@ function(arduino_sketch name ino_file)
122
119
target_compile_definitions (${name} PUBLIC ${ARG_DEFINITIONS} )
123
120
endif ()
124
121
125
- # Add platform-specific libraries
126
- if (USE_RPI)
127
- target_link_libraries (${name} gpiod)
128
- endif (USE_RPI)
129
122
endfunction ()
130
123
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/Arduino.cmake)
64
64
65
65
if (USE_RPI)
66
66
target_compile_options (arduino_emulator PUBLIC -DUSE_RPI)
67
+ target_link_libraries (arduino_emulator gpiod)
67
68
endif (USE_RPI)
68
69
69
70
if (USE_REMOTE)
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ arduino_library(sam "https://github.com/pschatzmann/arduino-SAM")
4
4
5
5
# Use the arduino_sketch function to build the example with additional libraries
6
6
arduino_sketch(using-arduino-library using-arduino-library.ino LIBRARIES sam)
7
+
You can’t perform that action at this time.
0 commit comments