Skip to content

Commit a90f449

Browse files
committed
RPI: link_libraries(gpiod)
1 parent f465d36 commit a90f449

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ target_compile_options(arduino_emulator PRIVATE -Wno-nonportable-include-path)
5757

5858
if (USE_RPI)
5959
target_compile_options(arduino_emulator PUBLIC -DUSE_RPI)
60+
link_libraries(gpiod)
6061
endif(USE_RPI)
6162

6263
if(USE_HTTPS)

examples/hallo-world/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ set(DCMAKE_CXX_FLAGS "-Werror")
77
set_source_files_properties(hallo-world.ino PROPERTIES LANGUAGE CXX)
88
add_executable(hallo-world hallo-world.ino)
99
target_compile_options(hallo-world PRIVATE -x c++)
10-
target_link_libraries(hallo-world arduino_emulator)
10+
target_link_libraries(hallo-world arduino_emulator)

examples/raspberry_pi/blink/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ set_source_files_properties(blink.ino PROPERTIES LANGUAGE CXX)
88
add_executable(blink blink.ino)
99
target_compile_options(blink PRIVATE -x c++)
1010
target_compile_definitions(blink PUBLIC -DUSE_RPI)
11-
target_link_libraries(blink arduino_emulator gpiod)
11+
target_link_libraries(blink arduino_emulator)

0 commit comments

Comments
 (0)