Skip to content

Commit 9fd2223

Browse files
committed
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.
1 parent 9937d02 commit 9fd2223

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/common/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if (UR_BUILD_ADAPTER_L0 OR UR_BUILD_ADAPTER_L0_V2)
77
include(FetchLevelZero)
88
set(UMF_BUILD_LEVEL_ZERO_PROVIDER ON CACHE INTERNAL "Build Level Zero Provider")
99
set(UMF_LEVEL_ZERO_INCLUDE_DIR "${LEVEL_ZERO_INCLUDE_DIR}" CACHE INTERNAL "Level Zero headers")
10+
else()
11+
set(UMF_BUILD_LEVEL_ZERO_PROVIDER OFF CACHE INTERNAL "Build Level Zero Provider")
1012
endif()
1113

1214
add_ur_library(ur_common STATIC

0 commit comments

Comments
 (0)