Skip to content

Commit

Permalink
Make /DEPENDENTLOADFLAG:0x800 link option PRIVATE
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kswiecicki committed Sep 3, 2024
1 parent 87c0aef commit ad5e6da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/level_zero/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ if(UR_BUILD_ADAPTER_L0)

if (WIN32)
# 0x800: Search for the DLL only in the System32 folder
target_link_options(ur_adapter_level_zero PUBLIC /DEPENDENTLOADFLAG:0x800)
target_link_options(ur_adapter_level_zero PRIVATE /DEPENDENTLOADFLAG:0x800)
endif()

target_link_libraries(ur_adapter_level_zero PRIVATE
Expand Down

0 comments on commit ad5e6da

Please sign in to comment.