From 9fd2223b06d4e7b202b56f1f9a49f12d6daa2b69 Mon Sep 17 00:00:00 2001 From: Ross Brunton Date: Wed, 20 Nov 2024 15:20:27 +0000 Subject: [PATCH] Don't build level zero provider in non-l0 builds We don't need it, and this saves a repo fetch and some compile time. --- source/common/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/common/CMakeLists.txt b/source/common/CMakeLists.txt index a4b1a8a8c3..df3fb95262 100644 --- a/source/common/CMakeLists.txt +++ b/source/common/CMakeLists.txt @@ -7,6 +7,8 @@ if (UR_BUILD_ADAPTER_L0 OR UR_BUILD_ADAPTER_L0_V2) include(FetchLevelZero) set(UMF_BUILD_LEVEL_ZERO_PROVIDER ON CACHE INTERNAL "Build Level Zero Provider") set(UMF_LEVEL_ZERO_INCLUDE_DIR "${LEVEL_ZERO_INCLUDE_DIR}" CACHE INTERNAL "Level Zero headers") +else() + set(UMF_BUILD_LEVEL_ZERO_PROVIDER OFF CACHE INTERNAL "Build Level Zero Provider") endif() add_ur_library(ur_common STATIC