Преглед изворни кода

add driver dependency to IDF component

The esp32_port.c file uses the UART driver but does not add it to its
dependency. This cause build failures in some projects.
Jiacheng Guo пре 3 година
родитељ
комит
c6f1920325
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      CMakeLists.txt

+ 2 - 1
CMakeLists.txt

@@ -13,7 +13,8 @@ if (DEFINED ESP_PLATFORM)
     if ("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER "4.0")
         idf_component_register(SRCS ${srcs}
                                INCLUDE_DIRS include port
-                               PRIV_INCLUDE_DIRS private_include)
+                               PRIV_INCLUDE_DIRS private_include
+                               PRIV_REQUIRES driver)
         set(target ${COMPONENT_LIB})
         component_compile_options(-Wstrict-prototypes)
     else()