Skip to content

Commit 3abe18c

Browse files
committed
Make /DEPENDENTLOADFLAG:0x800 link option PRIVATE
This option, marked as PUBLIC, is propagated to the targets linked with the 'ur_adapter_level_zero' target when the Level Zero adapter is built as a static library. This led to a STATUS_DLL_NOT_FOUND error when running test binaries on Windows.
1 parent 014a1c9 commit 3abe18c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/level_zero/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ if(UR_BUILD_ADAPTER_L0)
172172

173173
if (WIN32)
174174
# 0x800: Search for the DLL only in the System32 folder
175-
target_link_options(ur_adapter_level_zero PUBLIC /DEPENDENTLOADFLAG:0x800)
175+
target_link_options(ur_adapter_level_zero PRIVATE /DEPENDENTLOADFLAG:0x800)
176176
endif()
177177

178178
target_link_libraries(ur_adapter_level_zero PRIVATE

0 commit comments

Comments
 (0)