Skip to content

Integrate microlog as a submodule in a project and consume it via CMake #145

@mallenbach

Description

@mallenbach

Hi @an-dr - quick question regarding the way to use the lib with CMake.

In the README, it is said that "Option 2 - CMake Package (recommended CMake > 3.15.0)".

In my project, the preferred approach is to have the dependencies integrated as submodules. Then, thanks to the root CMakeLists of the different projects, I can easily integrate them,

In the current CMakeLists, we can see that the library is declared as an INTERFACE, which is not an expected pattern because it shifts the responsibility of compiling the core logic from the library itself to its consumer.

What do you think about changing it to STATIC instead?

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed📦 distributionPackage managers, build systems, repositories... everything to simplify consumption of the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions