Compare commits

...

7 Commits

3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,4 @@
if(NOT DEFINED IDF_TARGET)
cmake_minimum_required(VERSION 3.1...3.18)
# Fallback for using newer policies on CMake <3.12.
@ -391,3 +392,17 @@ 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)
target_compile_options(${COMPONENT_TARGET}
PRIVATE
-Wno-array-bounds
-Wno-stringop-overflow
)
endif()

1
fmt.pri Normal file
View File

@ -0,0 +1 @@
QMAKE_CXXFLAGS += -isystem $$PWD/include

4
fmt_src.pri Normal file
View File

@ -0,0 +1,4 @@
HEADERS +=
SOURCES += \
$$PWD/src/format.cc