Commit f7dbf5f8 authored by Aaron Wisner's avatar Aaron Wisner Committed by Henrik Brix Andersen
Browse files

build-system: Replace ~ when creating library names from path



Bazel likes to use '~` in path of external repos.

Signed-off-by: default avatarAaron Wisner <aaronwisner@gmail.com>
parent 88f8d857
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -449,6 +449,9 @@ macro(zephyr_library_get_current_dir_lib_name base lib_name)
  # Replace : with __ (C:/zephyrproject => C____zephyrproject)
  string(REGEX REPLACE ":" "__" name ${name})

  # Replace ~ with - (driver~serial => driver-serial)
  string(REGEX REPLACE "~" "-" name ${name})

  set(${lib_name} ${name})
endmacro()