From fb2b68c97232b08c5408bd825a1513871001c405 Mon Sep 17 00:00:00 2001 From: "DESKTOP-M9CCUTI\\ian" Date: Sun, 25 Aug 2024 14:52:26 +0200 Subject: [PATCH] stupid pico extension :( --- CMakeLists.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cbb77a2..f5b766a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,15 @@ -# == DO NEVER EDIT THE NEXT LINES for Raspberry Pi Pico VS Code Extension to work == -if(WIN32) - set(USERHOME $ENV{USERPROFILE}) -else() - set(USERHOME $ENV{HOME}) -endif() -set(sdkVersion 2.0.0) -set(toolchainVersion 13_2_Rel1) -set(picotoolVersion 2.0.0) -include(${USERHOME}/.pico-sdk/cmake/pico-vscode.cmake) +# == DO NEVER EDIT THE NEXT LINES for Raspberry Pi Pico VS Code Extension to work == +if(WIN32) + set(USERHOME $ENV{USERPROFILE}) +else() + set(USERHOME $ENV{HOME}) +endif() +if(WIN32) +set(sdkVersion 2.0.0) +set(toolchainVersion 13_2_Rel1) +set(picotoolVersion 2.0.0) +include(${USERHOME}/.pico-sdk/cmake/pico-vscode.cmake) +endif() # ==================================================================================== cmake_minimum_required(VERSION 3.13) set(CMAKE_C_STANDARD 11)