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

SDK • Re: Elegant ways of documenting changes in SDK for publishing project

$
0
0
It requires replacing and/or commenting out lines of code. Hmmm, inside CMakeLists.txt replaced:

Code:

include(pico_sdk_import.cmake)
with:

Code:

set(PICO_SDK_INIT_CMAKE_FILE ${PICO_SDK_PATH}/pico_sdk_init.cmake)include(${PICO_SDK_INIT_CMAKE_FILE})
and it does make a trick. So pico_sdk_import.cmake was reduced to two lines. But it requires sth like that before:

Code:

set(PICO_SDK_PATH ${CMAKE_CURRENT_LIST_DIR}/SDK)
So that allows using a custom Pico SDK with libraries as a subdirectory of a project directory. System environment PICO_SDK_PATH points to original directory but now project one is used instead.

Statistics: Posted by MatSOBDev2 — Tue Apr 02, 2024 3:07 pm



Viewing all articles
Browse latest Browse all 5203

Trending Articles