eyalroz / printf

Tiny, fast(ish), self-contained, fully loaded printf, sprinf etc. implementation; particularly useful in embedded systems.
MIT License
419 stars 52 forks source link

Use BUILD_SHARED_LIBS for choosing between static and shared build #174

Closed eyalroz closed 3 months ago

eyalroz commented 10 months ago

CMake has built-in support for an option named BUILD_SHARED_LIBS for controlling whether libraries are built static or shared/dynamic by default. Let's use that instead of our custom BUILD_STATIC_LIBRARY.