From 59e4caad1d618956c8b56d3b62389adc23309bfa Mon Sep 17 00:00:00 2001 From: Sinan Date: Sat, 13 Jun 2020 07:00:46 -0700 Subject: [PATCH] add dependency for icd variant, or else build fails (#17079) Co-authored-by: Sinan81 --- var/spack/repos/builtin/packages/pocl/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/pocl/package.py b/var/spack/repos/builtin/packages/pocl/package.py index da707344f5..121b240e28 100644 --- a/var/spack/repos/builtin/packages/pocl/package.py +++ b/var/spack/repos/builtin/packages/pocl/package.py @@ -71,6 +71,8 @@ class Pocl(CMakePackage): variant("icd", default=False, description="Support a system-wide ICD loader") + depends_on('ocl-icd', when='+icd') + def url_for_version(self, version): if version >= Version('1.0'): url = "https://github.com/pocl/pocl/archive/v{0}.tar.gz"