-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #39 - Add pico-vscode.cmake include
Instead of different DO NEVER EDIT lines for each SDK version, include a common file which does all that logic Update any existing CMakeLists.txt files to this new style when extension is loaded
- Loading branch information
Showing
6 changed files
with
111 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
set(PICO_SDK_PATH "${USERHOME}/.pico-sdk/sdk/${sdkVersion}") | ||
set(PICO_TOOLCHAIN_PATH "${USERHOME}/.pico-sdk/toolchain/${toolchainVersion}") | ||
|
||
if (sdkVersion VERSION_LESS "2.0.0") | ||
if(WIN32) | ||
set(pico-sdk-tools_DIR "${USERHOME}/.pico-sdk/tools/${sdkVersion}") | ||
include(${pico-sdk-tools_DIR}/pico-sdk-tools-config.cmake) | ||
include(${pico-sdk-tools_DIR}/pico-sdk-tools-config-version.cmake) | ||
endif() | ||
else() | ||
set(pioasm_HINT "${USERHOME}/.pico-sdk/tools/${sdkVersion}/pioasm") | ||
if(EXISTS ${pioasm_HINT}) | ||
set(pioasm_DIR ${pioasm_HINT}) | ||
endif() | ||
set(picotool_HINT "${USERHOME}/.pico-sdk/picotool/${picotoolVersion}/picotool") | ||
if(EXISTS ${picotool_HINT}) | ||
set(picotool_DIR ${picotool_HINT}) | ||
endif() | ||
if(PICO_TOOLCHAIN_PATH MATCHES "RISCV") | ||
set(PICO_PLATFORM rp2350-riscv CACHE STRING "Pico Platform") | ||
if(PICO_TOOLCHAIN_PATH MATCHES "COREV") | ||
set(PICO_COMPILER pico_riscv_gcc_zcb_zcmp) | ||
endif() | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters