Skip to content

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

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

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions