Skip to content

Commit 30ddd5a

Browse files
committed
gpiod
1 parent a90f449 commit 30ddd5a

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ 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)
6160
endif(USE_RPI)
6261

6362
if(USE_HTTPS)

examples/hallo-world/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ 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++)
1010
target_link_libraries(hallo-world arduino_emulator)
11+
12+
if(USE_RPI)
13+
target_link_libraries(hallo-world gpiod)
14+
endif(USE_RPI)

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)
11+
target_link_libraries(blink arduino_emulator gpiod)

0 commit comments

Comments
 (0)