From 2140536565ae23a96000677437136f5cb4c95806 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 24 Nov 2023 14:38:46 +0000 Subject: [PATCH] [UR] Update how UR_OPENCL_ICD_LOADER_LIBRARY is set (#11997) In https://github.com/oneapi-src/unified-runtime/pull/993 the type of the `UR_OPENCL_ICD_LOADER_LIBRARY` CMake variable will change to a cache variable, as such the usage of this variable also needs to up updated. --- sycl/plugins/unified_runtime/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sycl/plugins/unified_runtime/CMakeLists.txt b/sycl/plugins/unified_runtime/CMakeLists.txt index 1465d98fb7c58..f29c7fff17a04 100644 --- a/sycl/plugins/unified_runtime/CMakeLists.txt +++ b/sycl/plugins/unified_runtime/CMakeLists.txt @@ -30,7 +30,8 @@ if("hip" IN_LIST SYCL_ENABLE_PLUGINS) endif() if("opencl" IN_LIST SYCL_ENABLE_PLUGINS) set(UR_BUILD_ADAPTER_OPENCL ON) - set(UR_OPENCL_ICD_LOADER_LIBRARY OpenCL-ICD) + set(UR_OPENCL_ICD_LOADER_LIBRARY OpenCL-ICD CACHE FILEPATH + "Path of the OpenCL ICD Loader library" FORCE) endif() if("native_cpu" IN_LIST SYCL_ENABLE_PLUGINS) set(UR_BUILD_ADAPTER_NATIVE_CPU ON)