Skip to content

Commit 3d8b06e

Browse files
committed
Specify the C and C++ compiler path
1 parent ee42c6f commit 3d8b06e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test_poject/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
44

55
project(sample C CXX ASM)
66

7+
set(CMAKE_C_COMPILER /usr/bin/arm-none-eabi-gcc CACHE PATH "" FORCE)
8+
set(CMAKE_CXX_COMPILER /usr/bin/arm-none-eabi-g++ CACHE PATH "" FORCE)
9+
710
set(CMAKE_C_STANDARD 11)
811
set(CMAKE_CXX_STANDARD 17)
912

0 commit comments

Comments
 (0)