This commit is contained in:
hathach
2023-04-20 16:55:48 +07:00
parent b42d3e431c
commit 2ac289685a
4 changed files with 66 additions and 58 deletions

View File

@@ -1,4 +1,11 @@
if (NOT TARGET _family_support_marker)
include(CMakePrintHelpers)
# Default to gcc
if(NOT DEFINED TOOLCHAIN)
set(TOOLCHAIN gcc)
endif()
add_library(_family_support_marker INTERFACE)
if (NOT FAMILY)

View File

@@ -1,5 +1,7 @@
# toolchain set up, include before project()
if (NOT TARGET ${PROJECT})
# toolchain set up, include before project()
set(CMAKE_SYSTEM_PROCESSOR cortex-m7 CACHE INTERNAL "System Processor")
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_LIST_DIR}/../../../cmake/toolchain/arm_${TOOLCHAIN}.cmake)
else ()