Code: Select all
target_compile_options(${COMPONENT_LIB} PRIVATE -Wall -Wpedantic)
Is there an elegant way to confine the extra build flags to my project code/components ONLY and not IDF components, without needing to list all the source files as in:
Code: Select all
set_source_files_properties(<lots and lots of source files>.cpp
PROPERTIES COMPILE_FLAGS
-Wall -Wpedantic
)