How to define variations of (static) libraries

1 week ago 4
ARTICLE AD BOX

I need to build the same library in variations but in the same build. (no different configuration runs!)
The library contain the same source files, but need different defines and compiler settings, to support different hardware (same architecture, but different feature set)

At the moment, I define the libraries as interface libraries, so the libraries get these settings from the executable.
But this approach has some drawbacks.

every executable rebuild the same sources (I have more executable as variations) the definition of the library is distributed over different places.

Any better suggestions?

(I would like to avoid to have a list of source files and multiple libraries using the sources variable)

Read Entire Article