From 3e0d8902f8db92d15f54e4e2f8559eb5e264c061 Mon Sep 17 00:00:00 2001 From: Blake Freer <59676067+BlakeFreer@users.noreply.github.com> Date: Sat, 7 Sep 2024 20:31:26 -0400 Subject: [PATCH] fix: Set CMake Toolchain before enable language. (#177) Fixes the bug introduced in PR #168. Closes #176 --- firmware/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/CMakeLists.txt b/firmware/CMakeLists.txt index f0332a154..113758140 100644 --- a/firmware/CMakeLists.txt +++ b/firmware/CMakeLists.txt @@ -104,8 +104,8 @@ message(CHECK_PASS "Success") # Options are parsed. Start building message(STATUS "Building \"${PROJECT}\" for \"${PLATFORM}\" with mcal \"${MCAL}\".") -enable_language(C CXX ASM) set(CMAKE_TOOLCHAIN_FILE ${TOOLCHAIN_FILE}) +enable_language(C CXX ASM) set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS ON)