diff --git a/sycl/plugins/unified_runtime/CMakeLists.txt b/sycl/plugins/unified_runtime/CMakeLists.txt index a8fbd568bf5fd..918fe6b5c3f8c 100644 --- a/sycl/plugins/unified_runtime/CMakeLists.txt +++ b/sycl/plugins/unified_runtime/CMakeLists.txt @@ -75,6 +75,11 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT) endif() if(repo STREQUAL UNIFIED_RUNTIME_REPO AND tag STREQUAL UNIFIED_RUNTIME_TAG) + # If the adapter sources are taken from the main checkout, reset the + # adapter specific source path. + string(TOUPPER ${name} NAME) + set(UR_ADAPTER_${NAME}_SOURCE_DIR "" + CACHE PATH "Path to external '${name}' adapter source dir" FORCE) return() endif() message(STATUS