diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2020-05-04 00:39:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 09:39:20 +0200 |
commit | 87f78137a54b2d317172e18c1d46a46c31362c6e (patch) | |
tree | 7a2f203ea7458804b34b6f97552294544aebd5d8 /var/spack | |
parent | d5adad6953908a39920fbbe66c543bb008705179 (diff) | |
download | spack-87f78137a54b2d317172e18c1d46a46c31362c6e.tar.gz spack-87f78137a54b2d317172e18c1d46a46c31362c6e.tar.bz2 spack-87f78137a54b2d317172e18c1d46a46c31362c6e.tar.xz spack-87f78137a54b2d317172e18c1d46a46c31362c6e.zip |
LAPACKC++: added "shared" variant (#16419)
We can control the shared/static build of CMake and the default in
Spack is to build shared libraries. The old, uncontrolled default
of this package is a static build.
Diffstat (limited to 'var/spack')
-rw-r--r-- | var/spack/repos/builtin/packages/lapackpp/package.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/lapackpp/package.py b/var/spack/repos/builtin/packages/lapackpp/package.py index 1f3ec76924..8b51f233dd 100644 --- a/var/spack/repos/builtin/packages/lapackpp/package.py +++ b/var/spack/repos/builtin/packages/lapackpp/package.py @@ -16,8 +16,16 @@ class Lapackpp(CMakePackage): version('develop', hg=hg, revision="7ffa486") + variant('shared', default=True, + description='Build a shared version of the library') + depends_on('blaspp') def cmake_args(self): - return ['-DBUILD_LAPACKPP_TESTS:BOOL={0}'.format( - 'ON' if self.run_tests else 'OFF')] + 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') + ] |