Skip to content

Commit b09d2a8

Browse files
committed
RPI linker errors
1 parent 56356fe commit b09d2a8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

examples/raspberry-pi/blink/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ add_executable(blink-rpi blink.ino)
99
target_compile_options(blink-rpi PRIVATE -x c++)
1010
target_compile_definitions(blink-rpi PUBLIC -DUSE_RPI)
1111
target_link_libraries(blink-rpi arduino_emulator gpiod)
12+
if (USE_RPI)
13+
target_link_libraries(blink gpiod)
14+
endif(USE_RPI)

examples/remote-api/i2c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ add_executable(i2c i2c.ino)
99
target_compile_options(i2c PRIVATE -x c++)
1010
target_link_libraries(i2c arduino_emulator)
1111
if (USE_RPI)
12-
target_link_libraries(blink gpiod)
12+
target_link_libraries(i2c gpiod)
1313
endif(USE_RPI)

examples/remote-api/spi/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ add_executable(spi spi.ino)
99
target_compile_options(spi PRIVATE -x c++)
1010
target_link_libraries(spi arduino_emulator)
1111
if (USE_RPI)
12-
target_link_libraries(blink gpiod)
12+
target_link_libraries(spi gpiod)
1313
endif(USE_RPI)

0 commit comments

Comments
 (0)