Skip to content
Snippets Groups Projects
Unverified Commit 6afe002c authored by Stephen Nicholas Swatman's avatar Stephen Nicholas Swatman Committed by GitHub
Browse files

vecmem: fix SYCL compiler specification (#49108)

This commit adds an additional requirement to the vecmem package,
requiring the OneAPI compiler iff the `sycl` variant is turned on. This
allows us to correctly set the non-standard `SYCLCXX` environment
variable.
parent f76e0170
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,11 @@ class Vecmem(CMakePackage, CudaPackage):
depends_on("hip", when="+hip")
depends_on("sycl", when="+sycl")
# NOTE: this package uses a non-standard "SYCLCXX" environment variable which we can
# set easily only by requiring the OneAPI compiler, as this is automatically capable
# of compiling SYCL code.
requires("%oneapi", when="+sycl")
# FIXME: due to #29447, googletest is not available to cmake when building with --test,
# and we can choose between always depending on googletest, or using FetchContent
# depends_on("googletest", type="test")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment