From cef729e39cac7527bd92052c2e707073cee14f0e Mon Sep 17 00:00:00 2001 From: "Mark W. Krentel" Date: Sun, 9 Aug 2020 05:52:21 -0500 Subject: [PATCH] mbedtls: fix min cmake version, added v2.16.7 (#17960) Mbedtls 2.16.x uses target_sources() from cmake >= 3.1.0 --- var/spack/repos/builtin/packages/mbedtls/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/mbedtls/package.py b/var/spack/repos/builtin/packages/mbedtls/package.py index bbe2bd0412..0d79e25af4 100644 --- a/var/spack/repos/builtin/packages/mbedtls/package.py +++ b/var/spack/repos/builtin/packages/mbedtls/package.py @@ -15,7 +15,9 @@ class Mbedtls(CMakePackage): homepage = "https://tls.mbed.org" url = "https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.2.1.tar.gz" + maintainers = ['mwkrentel'] + version('2.16.7', sha256='4786b7d1676f5e4d248f3a7f2d28446876d64962634f060ff21b92c690cfbe86') version('2.16.1', sha256='daf0d40f3016c34eb42d1e4b3b52be047e976d566aba8668977723c829af72f3') version('2.7.10', sha256='42b19b30b86a798bdb69c5da2f8bbd7d72ffede9a35b888ab986a29480f9dc3e') version('2.3.0', sha256='1614ee70be99a18ca8298148308fb725aad4ad31c569438bb51655a4999b14f9') @@ -33,7 +35,8 @@ class Mbedtls(CMakePackage): variant('pic', default=False, description='Compile with position independent code.') - depends_on('cmake@2.6:', type='build') + 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') def flag_handler(self, name, flags):