Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3882

SDK • HAS_RP2040_RTC analog in CMakeLists.txt

$
0
0
If I'm building with PICO_BOARD pico, I need

Code:

target_link_libraries(target INTERFACE#...        hardware_rtc

However, that is an error with PICO_BOARD pico2:

Code:

[build] /usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: cannot find -lhardware_rtc: No such file or directory
Is there some way I can conditionally add hardware_rtc to my target_link_libraries if I'm building for RP2040?

Statistics: Posted by carlk3 — Wed Sep 11, 2024 1:51 am



Viewing all articles
Browse latest Browse all 3882

Trending Articles