diff --git a/CMakeLists.txt b/CMakeLists.txt index f1fb89660f9c..d5640763b1ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -802,6 +802,8 @@ add_dependencies(zephyr_generated_headers set(OFFSETS_LIB offsets) +cmake_path(CONVERT "${ARCH_DIR}" TO_CMAKE_PATH_LIST ARCH_DIR) + set(OFFSETS_C_PATH ${ARCH_DIR}/${ARCH}/core/offsets/offsets.c) set(OFFSETS_H_PATH ${PROJECT_BINARY_DIR}/include/generated/offsets.h)