diff options
author | Dr. Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com> | 2020-04-28 02:41:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 19:41:15 -0500 |
commit | f5a5a11c77a76939676a5bc2298fadc947091a9a (patch) | |
tree | 6529ce1772f780da246a93fc3377dbf5f1f2ec08 /var | |
parent | f1a7fb2ffc16788aff261cfbd6f7558828dc6210 (diff) | |
download | spack-f5a5a11c77a76939676a5bc2298fadc947091a9a.tar.gz spack-f5a5a11c77a76939676a5bc2298fadc947091a9a.tar.bz2 spack-f5a5a11c77a76939676a5bc2298fadc947091a9a.tar.xz spack-f5a5a11c77a76939676a5bc2298fadc947091a9a.zip |
abseil-cpp: new Version, Build Shared Library (#16125)
* Add new version: "Abseil LTS branch, Feb 2020, Patch 1"
* Build shared libraries by default with new version
* Older versions do not support building shared libraries
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/abseil-cpp/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/abseil-cpp/package.py b/var/spack/repos/builtin/packages/abseil-cpp/package.py index 90fd6cbd87..c40b2353bf 100644 --- a/var/spack/repos/builtin/packages/abseil-cpp/package.py +++ b/var/spack/repos/builtin/packages/abseil-cpp/package.py @@ -14,10 +14,18 @@ class AbseilCpp(CMakePackage): maintainers = ['jcftang'] + version('20200225.1', sha256='0db0d26f43ba6806a8a3338da3e646bb581f0ca5359b3a201d8fb8e4752fd5f8') version('20190808', sha256='8100085dada279bf3ee00cd064d43b5f55e5d913be0dfe2906f06f8f28d5b37e') version('20181200', sha256='e2b53bfb685f5d4130b84c4f3050c81bf48c497614dc85d91dbd3ed9129bce6d') version('20180600', sha256='794d483dd9a19c43dc1fbbe284ce8956eb7f2600ef350dac4c602f9b4eb26e90') + variant('shared', default=True, + description='Build shared instead of static libraries') + + conflicts('+shared', when='@:20190808') + def cmake_args(self): args = ["-DBUILD_TESTING=OFF", "-DCMAKE_CXX_STANDARD=11"] + args.append('-DBUILD_SHARED_LIBS:Bool={0}'.format( + 'ON' if '+shared' in self.spec else 'OFF')) return args |