]> Git Repo - pico-vscode.git/blobdiff - src/utils/cmakeUtil.mts
Merge branch 'main' into main
[pico-vscode.git] / src / utils / cmakeUtil.mts
index a1e4e8843500a6641b8d2610ec194f86c5f538ea..4a4c7fb841e6290d60c8473cea16e5e4cb38ceae 100644 (file)
@@ -341,7 +341,10 @@ export async function cmakeUpdateSDK(
         `set(sdkVersion ${newSDKVersion})\n` +
         `set(toolchainVersion ${newToolchainVersion})\n` +
         `set(picotoolVersion ${newPicotoolVersion})\n` +
-        `include(${buildCMakeIncPath(false)}/pico-vscode.cmake)\n` +
+        `set(picoVscode ${buildCMakeIncPath(false)}/pico-vscode.cmake)\n` +
+        "if (EXISTS ${picoVscode})\n" +
+        "    include(${picoVscode})\n" +
+        "endif()\n" +
         // eslint-disable-next-line max-len
         "# ===================================================================================="
       );
This page took 0.025081 seconds and 4 git commands to generate.