Skip to content

Commit

Permalink
fix: Set CMake Toolchain before enable language. (#177)
Browse files Browse the repository at this point in the history
Fixes the bug introduced in PR #168. Closes #176
  • Loading branch information
BlakeFreer authored Sep 8, 2024
1 parent b3d6e13 commit 3e0d890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e0d890

Please sign in to comment.