forked from fmtlib/fmt
Updated CMakeLists.txt to support esp-idf
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
if(NOT IDF_TARGET STREQUAL "esp32")
|
||||||
cmake_minimum_required(VERSION 3.1...3.18)
|
cmake_minimum_required(VERSION 3.1...3.18)
|
||||||
|
|
||||||
# Fallback for using newer policies on CMake <3.12.
|
# Fallback for using newer policies on CMake <3.12.
|
||||||
@@ -391,3 +392,9 @@ if (FMT_MASTER_PROJECT AND EXISTS ${gitignore})
|
|||||||
set(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.rst)
|
set(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.rst)
|
||||||
include(CPack)
|
include(CPack)
|
||||||
endif ()
|
endif ()
|
||||||
|
else()
|
||||||
|
idf_component_register(
|
||||||
|
INCLUDE_DIRS
|
||||||
|
include
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
Reference in New Issue
Block a user