Rewrites for esp-idf

This commit is contained in:
2023-11-14 14:25:57 +01:00
parent f5e54359df
commit c43fe02f66
3 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
if(NOT DEFINED IDF_TARGET)
cmake_minimum_required(VERSION 3.8...3.26)
# Fallback for using newer policies on CMake <3.12.
@@ -442,3 +443,12 @@ if (FMT_MASTER_PROJECT AND EXISTS ${gitignore})
set(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.rst)
include(CPack)
endif ()
else()
idf_component_register(
SRCS
src/format.cc
INCLUDE_DIRS
include
)
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 23)
endif()