Here you can find suggested correction for issue with spiffsgen https://github.com/espressif/esp-idf/issues/6429
The fix in main CMakeLists.txt contains dependency on targets which performs copy. Without the dependency it might happen that files are not copied before spiffs_create partition is invoked or it could be invoked when files are just partially copied.
This can be simulated just by running Windows build on slow single core computer.
The correction in components/network/CMakeLists.txt remove unnecessary include which causes problem when building on Windows, because of incorrectly escaped backslash in the path. Since the include is not necessary it can be removed.
Here you can find suggested correction for issue with spiffsgen https://github.com/espressif/esp-idf/issues/6429 The fix in main CMakeLists.txt contains dependency on targets which performs copy. Without the dependency it might happen that files are not copied before spiffs_create partition is invoked or it could be invoked when files are just partially copied. This can be simulated just by running Windows build on slow single core computer.
The correction in components/network/CMakeLists.txt remove unnecessary include which causes problem when building on Windows, because of incorrectly escaped backslash in the path. Since the include is not necessary it can be removed.