Skip to content

Commit 51d7180

Browse files
authored
Merge pull request #1205 from ykhatav/ur_dependentload
[UR] add dependent-load flag to exclude CWD from default search path …
2 parents b66cf9b + 0e37380 commit 51d7180

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/adapters/level_zero/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ set_target_properties(${TARGET_NAME} PROPERTIES
132132
SOVERSION "${PROJECT_VERSION_MAJOR}"
133133
)
134134

135+
if (WIN32)
136+
# 0x800: Search for the DLL only in the System32 folder
137+
target_link_options(ur_adapter_level_zero PUBLIC /DEPENDENTLOADFLAG:0x800)
138+
endif()
139+
135140
target_link_libraries(${TARGET_NAME} PRIVATE
136141
${PROJECT_NAME}::headers
137142
${PROJECT_NAME}::common

0 commit comments

Comments
 (0)