blob: 95b2f6a571b590efaec7d3e6edd18e4872c17be0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Ross(CMakePackage):
"""Rensselaer Optimistic Simulation System"""
homepage = "http://carothersc.github.io/ROSS/"
git = "https://github.com/carothersc/ROSS.git"
version('develop', branch='master')
version('7.0.0', tag='v7.0.0')
depends_on('mpi')
def cmake_args(self):
if 'x86_64' not in self.spec.architecture:
raise InstallError(
'This package currently only builds on x86_64 architectures')
args = ["-DBUILD_SHARED_LIBS=ON",
"-DARCH=x86_64",
"-DCMAKE_C_COMPILER=%s" % self.spec['mpi'].mpicc,
"-DCMAKE_CXX_COMPILER=%s" % self.spec['mpi'].mpicxx]
return args
|