File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,16 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
25
25
FetchContent_MakeAvailable (level-zero-loader )
26
26
FetchContent_GetProperties (level-zero-loader )
27
27
28
- set (LEVEL_ZERO_LIBRARY CACHE ze_loader )
28
+ set (LEVEL_ZERO_LIBRARY ze_loader )
29
29
set (LEVEL_ZERO_INCLUDE_DIR
30
30
${level-zero-loader_SOURCE_DIR}/include CACHE PATH "Path to Level Zero Headers" )
31
31
endif ()
32
32
33
+ add_library (LevelZeroLoader INTERFACE )
34
+ target_link_libraries (LevelZeroLoader
35
+ INTERFACE "${LEVEL_ZERO_LIBRARY} "
36
+ )
37
+
33
38
add_library (LevelZeroLoader-Headers INTERFACE )
34
39
target_include_directories (LevelZeroLoader-Headers
35
40
INTERFACE "${LEVEL_ZERO_INCLUDE_DIR} "
@@ -82,7 +87,7 @@ add_sycl_plugin(level_zero
82
87
LIBRARIES
83
88
LevelZeroLoader-Headers
84
89
UnifiedRuntime-Headers
85
- ${LEVEL_ZERO_LIBRARY}
90
+ LevelZeroLoader
86
91
Threads::Threads
87
92
${XPTI_LIBS}
88
93
)
Original file line number Diff line number Diff line change @@ -54,5 +54,5 @@ add_sycl_plugin(unified_runtime
54
54
Threads::Threads
55
55
UnifiedRuntime-Headers
56
56
LevelZeroLoader-Headers
57
- ${LEVEL_ZERO_LIBRARY}
57
+ LevelZeroLoader
58
58
)
You can’t perform that action at this time.
0 commit comments