Skip to content

Commit 42e58a8

Browse files
committed
gen_arduino_files.cmake: fix Mac path normalization
TOP_DIR includes a trailing slash on Mac, but not on Linux. On Mac, the path to the variant directory is generated with a double slash, and this makes the 'iwithprefixbefore' replacement fail. A second NORMALIZE step fixes this. Signed-off-by: Luca Burelli <[email protected]>
1 parent bdd61e6 commit 42e58a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extra/gen_arduino_files.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ foreach(variant ${VARIANTS})
2121
continue()
2222
endif()
2323

24-
cmake_path(SET dir ${TOP_DIR}/variants/${variant})
24+
cmake_path(SET dir ${TOP_DIR}/variants/${variant} NORMALIZE)
2525
if(NOT EXISTS ${dir}/llext-edk/cmake.cflags)
2626
continue()
2727
endif()

0 commit comments

Comments
 (0)