Hi @Gabriel47! Looks like a bug, could you please try to organize your library as a full-fledged ESP-IDF component?
Just create a new CMakeLists.txt
in library folder with the following contents:
idf_component_register(SRCS "lighting.c" INCLUDE_DIRS ".")
Then specify it in the main CMakeLists.txt
near platformio.ini
:
cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
list(APPEND EXTRA_COMPONENT_DIRS lib/lighting)
project(EHome)