Build2 seems to have the right idea.

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
sponsored
  1. conan-center-index

    Recipes for the ConanCenter repository

    Are you aware of the existing main package managers? vcpkg (1800 packages available) and Conan (claims that 1000 packages are available but the list stops at letter T so I suspect it's cut off).

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Vcpkg

    C++ Library Manager for Windows, Linux, and MacOS

    ah libpq the perl monster on windows generating msbuild files. I wonder if the autotools/configure script could be used on windows instead. The vcpkg recipe is also horrendous: https://github.com/microsoft/vcpkg/blob/master/ports/libpq/portfile.cmake and even requires conditional patching depending on the config relaese/debug

  4. conan

    Conan - The open-source C and C++ package manager

    Are you aware of the existing main package managers? vcpkg (1800 packages available) and Conan (claims that 1000 packages are available but the list stops at letter T so I suspect it's cut off).

  5. cmake-init-clang-on-windows

    Discontinued Using LLVM Clang on Windows with CMake

    From a quick searching I found what it takes to compile a Windows executable on macOS, these flags could be very easily turned into a toolchain file and the situation would be similar on Linux as well.

  6. pkgconf

    build2 packages for pkgconf toolkit (by build2-packaging)

  7. pkgconf

    package compiler and linker metadata toolkit

  8. sol2

    build2 Package Repository for sol2 (by build2-packaging)

    Here is a simple example, Sol2 which requires lua: https://github.com/build2-packaging/sol2

  9. spdlog

    build2 package of the spdlog library (by build2-packaging)

    Platform dependence: They seem to involve bizarrely low-level and compiler-specific details. Just look at this from the spdlog recipe:

  10. spdlog

    Fast C++ logging library.

    I've also seen things in build2 recipes involving gcc or MSVC compiler switches. Admittedly, the CMake script for spdlog is also quite complex. But I think that's because it's covering a lot of possibilities of how its dependencies are built that build2, by the sounds of it, ought not have to worry about. CMake gives you platform independent ways to set features on targets so that, in theory at least, you write your build script once and it automatically works across multiple platforms.

  11. postgresql

    build2 packages for PostgreSQL database management system (by build2-packaging)

    Scattered files: In CMake, it's quite common for the build script to be split over multiple files. Most commonly it's a top-level CMakeLists.txt, then another for each subdirectory (often corresponding to a target), plus some utilities in a cmake/ subdirectory. But that is nothing compared to build2. Just look at the build script repo for libpq. What on earth is going on? There are a few top-level files, plus a submodule for the upstream (fair enough), but then absolutely heaps of subdirectories mirroring pq directories, plus softlinks into the upstream submodule. There are others that actually look worse to me but I don't feel comfortable linking to them because I'm not sure what's going on!

  12. Ease

    Ease is a Build System for C++ that strive to acheive simplicity. There is no dependancies, no installation you drop off Ease.hpp in your project and can start writing a build function. The build function will be called and the build will start according to the return value of this function. (by Tackwin)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • No way to parse integers in C

    1 project | news.ycombinator.com | 20 May 2026
  • Conan: Your Embedded Cross-Compilation Champion

    2 projects | dev.to | 13 Jul 2024
  • Are We Modules Yet?

    3 projects | news.ycombinator.com | 1 May 2024
  • The xz attack shell script

    5 projects | news.ycombinator.com | 2 Apr 2024
  • My first Software Release using GitHub Release

    6 projects | dev.to | 24 Nov 2023