2022-01-05 22:17:29 -05:00
|
|
|
include($ENV{IDF_PATH}/tools/cmake/utilities.cmake)
|
|
|
|
|
2018-02-26 23:45:30 -05:00
|
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
|
|
|
|
set(CMAKE_C_COMPILER xtensa-esp32-elf-gcc)
|
|
|
|
set(CMAKE_CXX_COMPILER xtensa-esp32-elf-g++)
|
|
|
|
set(CMAKE_ASM_COMPILER xtensa-esp32-elf-gcc)
|
|
|
|
|
2022-01-05 22:17:29 -05:00
|
|
|
|
|
|
|
remove_duplicated_flags("-mlongcalls -Wno-frame-address ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
|
|
|
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
|
|
|
remove_duplicated_flags("-mlongcalls -Wno-frame-address ${CMAKE_CXX_FLAGS}" UNIQ_CMAKE_CXX_FLAGS)
|
|
|
|
set(CMAKE_CXX_FLAGS "${UNIQ_CMAKE_CXX_FLAGS}" CACHE STRING "C++ Compiler Base Flags" FORCE)
|