Skip to content

Commit

Permalink
cmake: convert ARCH_DIR path to CMake style
Browse files Browse the repository at this point in the history
Windows build needs this when generating offsets.c

Signed-off-by: David Leach <david.leach@nxp.com>
  • Loading branch information
dleach02 committed Feb 9, 2024
1 parent 00deb8d commit b37dd98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b37dd98

Please sign in to comment.