diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-05-26 09:15:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-26 09:15:09 +0200 |
commit | b75ad9f950de4eb4b87c950c8cdd60893f82b797 (patch) | |
tree | b9c7623430bced12bbd6c9d48b8d94b1145cfdea /var | |
parent | 051bcef69715471130a4ada98756c3f6ab0158b2 (diff) | |
download | spack-b75ad9f950de4eb4b87c950c8cdd60893f82b797.tar.gz spack-b75ad9f950de4eb4b87c950c8cdd60893f82b797.tar.bz2 spack-b75ad9f950de4eb4b87c950c8cdd60893f82b797.tar.xz spack-b75ad9f950de4eb4b87c950c8cdd60893f82b797.zip |
mbedtls: make perl a test dependency (#23897)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/mbedtls/package.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/mbedtls/package.py b/var/spack/repos/builtin/packages/mbedtls/package.py index f5617ac359..bb64199435 100644 --- a/var/spack/repos/builtin/packages/mbedtls/package.py +++ b/var/spack/repos/builtin/packages/mbedtls/package.py @@ -35,10 +35,18 @@ class Mbedtls(CMakePackage): variant('pic', default=False, description='Compile with position independent code.') + variant('shared', default=False, + description='Build shared libraries') depends_on('cmake@3.1.0:', type='build', when='@2.8.0:') depends_on('cmake@2.6:', type='build', when='@:2.7.99') - depends_on('perl', type='build') + depends_on('perl', type='test') + + def cmake_args(self): + return [ + self.define('ENABLE_TESTING', self.run_tests), + self.define_from_variant('USE_SHARED_MBEDTLS_LIBRARY', 'shared') + ] def flag_handler(self, name, flags): |