Src_filter using espidf


I’m wondering, why is the espidf ignoring the src_filter… I can see that platformio can generate a CMakeLists.txt in src if none is provided, so why doesn’t it use the src_filter when generating it?

Maybe because platformio cannot know if the CMakeLists.txt file was auto generated or modified by the user?
In that case why not generate the CMakeLists.txt file inside the build dir? (using absolute paths in that case when referencing the source folder)… and to stay backward compatible, platformio can do it only if no src/CMakeLists.txt exists.

It’s kind of annoying to have to maintain this file for esp32 only :slight_smile: :sweat_smile:


You can try and have this issue tracked in Issues · platformio/platform-espressif32 · GitHub

thanks, I will open a issue on github then