mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
fix(esp_partition/cmake): remove unused PRIV_INCLUDE_DIRS
Currently, the bootloader version of the `esp_partition` component sets `PRIV_INCLUDE_DIRS` using the `private_include_dirs` variable. However, this variable is not properly initialized, which causes issues in cmakev2. In cmakev2, components are evaluated recursively, and a component may be evaluated in the context of another component, so components must initialize all variables before using them. Moreover, there are effectively no `PRIV_INCLUDE_DIRS` to set when the component is evaluated for the bootloader. Therefore, remove `PRIV_INCLUDE_DIRS` entirely for bootloader and test builds. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
@@ -10,7 +10,6 @@ if(BOOTLOADER_BUILD)
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "include"
|
||||
PRIV_INCLUDE_DIRS ${private_include_dirs}
|
||||
REQUIRES ${reqs}
|
||||
PRIV_REQUIRES ${priv_reqs})
|
||||
|
||||
@@ -22,7 +21,6 @@ elseif(esp_tee_build)
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "include"
|
||||
PRIV_INCLUDE_DIRS ${private_include_dirs}
|
||||
REQUIRES ${reqs}
|
||||
PRIV_REQUIRES ${priv_reqs})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user