Skip to content

Commit

Permalink
Add cxxmpi
Browse files Browse the repository at this point in the history
  • Loading branch information
range3 committed Jan 7, 2025
1 parent 7900059 commit ab79014
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions packages/cxxmpi/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Cxxmpi(CMakePackage):
"""Modern C++20 wrapper for MPI.
cxxmpi is a header-only C++20 wrapper library for MPI that provides
type-safe, RAII-compliant interfaces with modern C++ features.
"""

homepage = "https://github.com/range3/cxxmpi"
url = "https://github.com/range3/cxxmpi/archive/v0.1.0.tar.gz"
git = "https://github.com/range3/cxxmpi.git"


maintainers("range3")

license("UNKNOWN", checked_by="range3")

version("master", branch="master")
version("0.1.6", sha256="28d020568a20873693a0acc08f42a908cbad36c22873c13d966c2f4f924aaa63", preferred=True)

depends_on("cxx", type="build")
depends_on("[email protected]:", type="build")
depends_on("mpi")
# depends_on("[email protected]:", type=("build", "test"))

def cmake_args(self):
args = [
self.define("CMAKE_CXX_STANDARD", "20"),
self.define("CMAKE_CXX_STANDARD_REQUIRED", "ON"),
]
return args

0 comments on commit ab79014

Please sign in to comment.