You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
I want to use a library as an idf component but it doesn't come with its own cmake file for idf. There are some cross board files in the library, which I don't need, but I'm not sure which ones I don't need. I can only keep modifying the idf_component_register.SRCS parameters to test, which is a terrible experience. Every time I add even one file to my SOURCE_FILES, it will cause the entire project of more than 1400 source files to be recompiled. I have never hated c++ so much. Is there any way to solve this problem? I also use arduino-esp32 as my component. Maybe there is a way to pre-compile some things as static libraries to reduce compilation time?
github-actionsbot
changed the title
How to prevent the entire project from being recompiled due to modifying CMakeLists.txt
How to prevent the entire project from being recompiled due to modifying CMakeLists.txt (IDFGH-13903)
Oct 17, 2024
Hi @UradaSources. If I understood your situation correctly then in this case the best and easiest option would be to make sure that you are bulding with ccache enabled. That means it will re-use the previously built source files from the cache if it hasn't been modified.
Answers checklist.
General issue report
I want to use a library as an idf component but it doesn't come with its own cmake file for idf. There are some cross board files in the library, which I don't need, but I'm not sure which ones I don't need. I can only keep modifying the idf_component_register.SRCS parameters to test, which is a terrible experience. Every time I add even one file to my SOURCE_FILES, it will cause the entire project of more than 1400 source files to be recompiled. I have never hated c++ so much. Is there any way to solve this problem? I also use arduino-esp32 as my component. Maybe there is a way to pre-compile some things as static libraries to reduce compilation time?
The text was updated successfully, but these errors were encountered: