Skip to content

[Cmake] Skip MPI cxx link also for mpich #1725

@tdavidcl

Description

@tdavidcl

set(SHAM_CXX_MPI_FLAGS "-DOMPI_SKIP_MPICXX")

should be more like

find_package(MPI COMPONENTS C)
  if(MPI_FOUND)
    # Workaround for various MPI implementations forcing the link of C++ bindings
    add_definitions(-DOMPI_SKIP_MPICXX -DMPICH_SKIP_MPICXX)

    list(APPEND _components MPI)
  endif()

cf https://docs.alcf.anl.gov/aurora/workflows/adios/#mixed-c-and-python-hello-world-example

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