add dependency for icd variant, or else build fails (#17079)

Co-authored-by: Sinan81 <Sinan81@github>
This commit is contained in:
Sinan 2020-06-13 07:00:46 -07:00 committed by GitHub
parent 58332d028e
commit 59e4caad1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"