From 3d8b06e9b7660afadca079a1034aeb5177f9dad1 Mon Sep 17 00:00:00 2001 From: lukstep Date: Sun, 23 Jul 2023 12:57:49 +0200 Subject: [PATCH] Specify the C and C++ compiler path --- test_poject/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_poject/CMakeLists.txt b/test_poject/CMakeLists.txt index 81b8e8e..7d4c4c9 100644 --- a/test_poject/CMakeLists.txt +++ b/test_poject/CMakeLists.txt @@ -4,6 +4,9 @@ include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake) project(sample C CXX ASM) +set(CMAKE_C_COMPILER /usr/bin/arm-none-eabi-gcc CACHE PATH "" FORCE) +set(CMAKE_CXX_COMPILER /usr/bin/arm-none-eabi-g++ CACHE PATH "" FORCE) + set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17)