diff --git a/CMakeLists.txt b/CMakeLists.txt index 4033ddfc..3d792d7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,4 @@ +if(NOT IDF_TARGET STREQUAL "esp32") cmake_minimum_required(VERSION 3.1...3.18) # 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) include(CPack) endif () +else() +idf_component_register( + INCLUDE_DIRS + include +) +endif()