diff --git a/source/adapters/level_zero/CMakeLists.txt b/source/adapters/level_zero/CMakeLists.txt index 7203d5a238..9b94d4ac0e 100644 --- a/source/adapters/level_zero/CMakeLists.txt +++ b/source/adapters/level_zero/CMakeLists.txt @@ -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