Support meson build system · Issue #1181 · fortran-lang/stdlib · GitHub
Skip to content

Support meson build system #1181

Open
Open

Description

@lukaswittmann

Motivation

Most of our projects use meson as one of the main build systems, and we would like to slowly transition to/include stdlib. Native meson support in stdlib would make this much easier.

Would you be open to adding Meson as a supported build system for stdlib itself, alongside the current options? If there is interest, I would be willing to work on the meson support and create a PR.

Prior Art

No response

Additional Information

The discussion of supporting meson came up before a few times already (#2, #287).

Activity

  1. added
    ideaProposition of an idea and opening an issue to discuss it
    on Apr 17, 2026
  2. awvwgk commented on Apr 17, 2026

    @awvwgk
    Member

    The combination of meson and fypp doesn't work well together last time I tried. There is the option to use configure_file to generate the Fortran files dynamically with fypp during the setup step, however this triggers a reconfiguration of the build any time a fypp file changes and therefore forces a full rebuild of stdlib. Unless there is a better option added in more recent versions of meson, I would think it is easier to discover the CMake installed package via pkg-config or include stdlib as CMake subproject in meson.

  3. jalvesz commented on Apr 17, 2026

    @jalvesz
    Contributor

    @awvwgk isn't that similar to the issue with FPM for which a pre-configuration script was added ? (see https://github.com/fortran-lang/stdlib#build-with-fortran-langfpm)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaProposition of an idea and opening an issue to discuss it

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions