DEV Community

Discussion on: CMake on STM32 | Episode 3: handle warnings in 3rd party files

Collapse
 
dancollins_171 profile image
Dan Collins

That's a good point, yeah. Explicit error suppression is nice in that way :)

Thanks again for a great series - I'm planning on having a play this evening.

Thread Thread
 
pgradot profile image
Pierre Gradot

And eventually, did you play? :)

Thread Thread
 
dancollins_171 profile image
Dan Collins

I did! I've got a blinky light running on the F7 discovery board. I'll be figuring out how to add features like generating a 'version.h' with git info, and perhaps having a per-file logging level. I used to use SCons for this, but I like how well supported / deployed CMake is.

Thread Thread
 
pgradot profile image
Pierre Gradot

I have generated such version.hpp files, but for SVN. I used stackoverflow.com/questions/378066...

For Git, there is cmake.org/cmake/help/latest/module... but there are less commands than with SVN. You will probably find tips on Stackoverflow ;)