Skip to content

Add generic MPI pkgconfig descriptors #10572

Open
@eschnett

Description

@eschnett

cmake recently gained support to use pkgconfig to detect MPI options (see https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6537/diffs). This is useful e.g. when cross-compiling. Cross-compiling with OpenMPI fails regularly for me because mpicc etc. are binaries and cannot be executed.

This cmake patch looks for pkgconfig setups called mpi-c, mpi-cxx, and mpi-fort. It would be good if OpenMPI provided such configuration, in addition to the ompi-c.pc etc. that it already provides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions