spack/var/spack/repos/builtin/packages/filo/package.py
Harmen Stoppels fce95e2efb
license year bump (#34921)
* license bump year
* fix black issues of modified files
* mypy
* fix 2021 -> 2023
2023-01-18 14:30:17 -08:00

33 lines
998 B
Python

# Copyright 2013-2023 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.package import *
class Filo(CMakePackage):
"""File flush and fetch, with MPI"""
homepage = "https://github.com/ecp-veloc/filo"
git = "https://github.com/ecp-veloc/filo.git"
tags = ["ecp"]
version("main", branch="main")
depends_on("mpi")
depends_on("axl")
depends_on("kvtree")
depends_on("spath")
def cmake_args(self):
args = []
args.append("-DMPI_C_COMPILER=%s" % self.spec["mpi"].mpicc)
if self.spec.satisfies("platform=cray"):
args.append("-DFILO_LINK_STATIC=ON")
args.append("-DWITH_AXL_PREFIX=%s" % self.spec["axl"].prefix)
args.append("-DWITH_KVTREE_PREFIX=%s" % self.spec["kvtree"].prefix)
args.append("-DWITH_SPATH_PREFIX=%s" % self.spec["spath"].prefix)
return args