Skip to content

Commit

Permalink
Merge pull request #1205 from ykhatav/ur_dependentload
Browse files Browse the repository at this point in the history
[UR] add dependent-load flag to exclude CWD from default search path …
  • Loading branch information
kbenzie committed Jan 26, 2024
2 parents b66cf9b + 0e37380 commit 51d7180
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/adapters/level_zero/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ set_target_properties(${TARGET_NAME} PROPERTIES
SOVERSION "${PROJECT_VERSION_MAJOR}"
)

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

target_link_libraries(${TARGET_NAME} PRIVATE
${PROJECT_NAME}::headers
${PROJECT_NAME}::common
Expand Down

0 comments on commit 51d7180

Please sign in to comment.