feelpp/spack#11 (#47243)

This commit is contained in:
Christophe Prud'homme 2024-10-28 13:25:29 +01:00 committed by GitHub
parent b9ebf8cc9c
commit 11aa02b37a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,32 @@
# Copyright 2013-2024 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 Fmi4cpp(CMakePackage):
"""FMI4cpp is a cross-platform FMI 2.0 implementation written in modern C++.
FMI4cpp supports both Co-simulation and Model Exchange.
"""
homepage = "https://github.com/NTNU-IHB/FMI4cpp"
url = "https://github.com/NTNU-IHB/FMI4cpp/archive/refs/tags/v0.8.3.tar.gz"
git = "https://github.com/NTNU-IHB/FMI4cpp.git"
maintainers("prudhomm")
license("MIT", checked_by="prudhomm")
version("master", branch="master")
version("0.8.3", sha256="f48c630f087bdf8d7a04611f6f30942c870c3c1211a94ef2404c40baa4bcb2c9")
variant("shared", default=True, description="Build shared library")
depends_on("cxx", type="build")
depends_on("libzip")
depends_on("pugixml")
def cmake_args(self):
args = [self.define_from_variant("BUILD_SHARED_LIBS", "shared")]
return args