mbedtls: make perl a test dependency (#23897)
This commit is contained in:
parent
051bcef697
commit
b75ad9f950
1 changed files with 9 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue