kopia lustrzana https://github.com/espressif/esp-idf
13 wiersze
557 B
CMake
13 wiersze
557 B
CMake
include($ENV{IDF_PATH}/tools/cmake/utilities.cmake)
|
|
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
set(CMAKE_C_COMPILER xtensa-esp32s3-elf-gcc)
|
|
set(CMAKE_CXX_COMPILER xtensa-esp32s3-elf-g++)
|
|
set(CMAKE_ASM_COMPILER xtensa-esp32s3-elf-gcc)
|
|
|
|
remove_duplicated_flags("-mlongcalls ${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 ${CMAKE_CXX_FLAGS}" UNIQ_CMAKE_CXX_FLAGS)
|
|
set(CMAKE_CXX_FLAGS "${UNIQ_CMAKE_CXX_FLAGS}" CACHE STRING "C++ Compiler Base Flags" FORCE)
|