raspberrypi / pico-sdk

BSD 3-Clause "New" or "Revised" License
3.25k stars 838 forks source link

Prevent Compile Flag propagation to PICO-SDK #1656

Open arminveres opened 4 months ago

arminveres commented 4 months ago

I am trying to prevent my compile flags from being propagated to, since when I add some further warning flags and -Werror then compilation fails. Inclusion as a system Library would be great, but since one can't just do add_subdirectory(pico-sdk SYSTEM) the include files are all propagating the warnings.

Is there a solution to this?

lurch commented 4 months ago

Duplicate of #924 ?

arminveres commented 4 months ago

Hi @lurch, I guess in part, if there is no other way to prevent any propagation...