Skip to content

Commit f7dbf5f

Browse files
wizard97henrikbrixandersen
authored andcommitted
build-system: Replace ~ when creating library names from path
Bazel likes to use '~` in path of external repos. Signed-off-by: Aaron Wisner <[email protected]>
1 parent 88f8d85 commit f7dbf5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/extensions.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,9 @@ macro(zephyr_library_get_current_dir_lib_name base lib_name)
449449
# Replace : with __ (C:/zephyrproject => C____zephyrproject)
450450
string(REGEX REPLACE ":" "__" name ${name})
451451

452+
# Replace ~ with - (driver~serial => driver-serial)
453+
string(REGEX REPLACE "~" "-" name ${name})
454+
452455
set(${lib_name} ${name})
453456
endmacro()
454457

0 commit comments

Comments
 (0)