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

SDK • Re: Another cmake question - sorry

$
0
0

Code:

if(PICO_PLATFORM STREQUAL "rp2040")target_compile_definitions(your_lib_name PRIVATE        PICO_HEAP_SIZE=0x2000        )else()target_compile_definitions(your_lib_name PRIVATE        PICO_HEAP_SIZE=0x4000        )endif()

Statistics: Posted by peterharperuk — Thu Aug 22, 2024 5:20 pm



Viewing all articles
Browse latest Browse all 5075

Trending Articles