Skip to content

Commit 143e635

Browse files
[CMake] Don't configure and build L0 loader
We only require source files
1 parent e1b1812 commit 143e635

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,13 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER)
430430
GIT_TAG ${LEVEL_ZERO_LOADER_TAG})
431431
FetchContent_Populate(level-zero-loader)
432432
else()
433+
# 'non-existing-dir' is set to avoid configuring L0 loader. Ref.
434+
# https://gitlab.kitware.com/cmake/cmake/-/issues/26220
433435
FetchContent_Declare(
434436
level-zero-loader
435437
GIT_REPOSITORY ${LEVEL_ZERO_LOADER_REPO}
436438
GIT_TAG ${LEVEL_ZERO_LOADER_TAG}
437-
EXCLUDE_FROM_ALL)
439+
EXCLUDE_FROM_ALL SOURCE_SUBDIR "non-existing-dir")
438440
FetchContent_MakeAvailable(level-zero-loader)
439441
endif()
440442

0 commit comments

Comments
 (0)