diff options
author | iarspider <iarspider@gmail.com> | 2021-07-28 19:07:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 19:07:12 +0200 |
commit | ace3753076941ed8b642864b36305aecbe2bd35b (patch) | |
tree | 9c3d7ecb47f4eed5c1a7ec2b508f741a3dd6d1fa /var | |
parent | d6cbaee16b5f1b1abdac6367acab1a22a06719ca (diff) | |
download | spack-ace3753076941ed8b642864b36305aecbe2bd35b.tar.gz spack-ace3753076941ed8b642864b36305aecbe2bd35b.tar.bz2 spack-ace3753076941ed8b642864b36305aecbe2bd35b.tar.xz spack-ace3753076941ed8b642864b36305aecbe2bd35b.zip |
re2: addv2021-06-01 and 'shared' variant (#25121)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/re2/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/re2/package.py b/var/spack/repos/builtin/packages/re2/package.py index 5be8f32d10..61a5d595ef 100644 --- a/var/spack/repos/builtin/packages/re2/package.py +++ b/var/spack/repos/builtin/packages/re2/package.py @@ -13,5 +13,15 @@ class Re2(CMakePackage): homepage = "https://github.com/google/re2" url = "https://github.com/google/re2/archive/2020-08-01.tar.gz" + version('2021-06-01', sha256='26155e050b10b5969e986dab35654247a3b1b295e0532880b5a9c13c0a700ceb') version('2020-08-01', sha256='6f4c8514249cd65b9e85d3e6f4c35595809a63ad71c5d93083e4d1dcdf9e0cd6') version('2020-04-01', sha256='98794bc5416326817498384a9c43cbb5a406bab8da9f84f83c39ecad43ed5cea') + + variant('shared', default=False, + description='Build shared instead of static libraries') + + def cmake_args(self): + args = [ + self.define_from_variant('BUILD_SHARED_LIBS', 'shared') + ] + return args |