Skip to content

Commit 00e27fe

Browse files
committed
[UR][L0] Fix runtime library linkage failure
Fix failure of mismatching runtime library types when linking ur_adapter_level_zero.dll with ze_loader.lib.
1 parent 2054243 commit 00e27fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unified-runtime/cmake/FetchLevelZero.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
6969
target_compile_options(ze_loader PRIVATE
7070
$<$<IN_LIST:$<CXX_COMPILER_ID>,GNU;Clang;Intel;IntelLLVM>:-Wno-error>
7171
$<$<CXX_COMPILER_ID:MSVC>:/WX- /UUNICODE>
72+
/MD$<$<CONFIG:Debug>:d>
7273
)
7374

7475
set(LEVEL_ZERO_LIBRARY ze_loader)

0 commit comments

Comments
 (0)