blob: 008b9d3b40567efaccb01f9834ad4de72a7c6ebe (
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
31
|
# Copyright 2013-2020 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 Lapackpp(CMakePackage):
"""LAPACK++: C++ API for the Basic Linear Algebra Subroutines (University
of Tennessee)"""
homepage = "https://bitbucket.org/icl/lapackpp"
git = "https://bitbucket.org/icl/lapackpp"
maintainers = ['teonnik', 'Sely85']
version('develop', commit="f878fad")
variant('shared', default=True,
description='Build a shared version of the library')
depends_on('blaspp')
def cmake_args(self):
spec = self.spec
return [
'-DBUILD_SHARED_LIBS:BOOL={0}'.format(
'ON' if '+shared' in spec else 'OFF'),
'-DBUILD_LAPACKPP_TESTS:BOOL={0}'.format(
'ON' if self.run_tests else 'OFF')
]
|