Skip to content

One build system to rule them all #698

Description

@theodelrieu

Right now, we have mainly two ways of building the library (i.e. tests):

  • Makefile
  • CMake

There is also a meson.build file, which only provides support for meson users, so they don't have to rely on a wrap.

There are some issues with the CMakeLists.txt (as #695 shows. I also personally have to clean my build folder each time to regenerate the precompiled header on Linux)

There are also targets that are only available in the Makefile (e.g. make pretty)

I think we should adopt a single build system, I will soon need to add a target to amalgamate the library after we split the monolithic json.hpp, and I don't know if I should add it only in the Makefile, the CMakeLists.txt etc...

Rewriting everything would not take very long, since this is not a huge project.

What do people think?

My personal preference would go towards Meson, but we could also simply rewrite the CMake to be more in phase with what people call "modern CMake".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions