forked from fmtlib/fmt
Compare commits
7 Commits
esp-idf-re
...
old-esp-id
Author | SHA1 | Date | |
---|---|---|---|
6598fd9681 | |||
c10b8bd0e2 | |||
32e16173ce | |||
3249aeed8b | |||
9bc806ecee | |||
4b8565434c | |||
b7dbc2c905 |
@ -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()
|
||||
|
4
fmt_src.pri
Normal file
4
fmt_src.pri
Normal file
@ -0,0 +1,4 @@
|
||||
HEADERS +=
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/src/format.cc
|
Reference in New Issue
Block a user