cmake: fix out of tree hal build fail
Fix out of tree building hal fail with different drive on windows. Signed-off-by: Jim Tan <KuoChun.Tan@ite.com.tw>
This commit is contained in:
parent
c8f9f53322
commit
c31cb0075a
1 changed files with 3 additions and 0 deletions
|
@ -404,6 +404,9 @@ macro(zephyr_library_get_current_dir_lib_name base lib_name)
|
|||
# Replace / with __ (driver/serial => driver__serial)
|
||||
string(REGEX REPLACE "/" "__" name ${name})
|
||||
|
||||
# Replace : with __ (C:/zephyrproject => C____zephyrproject)
|
||||
string(REGEX REPLACE ":" "__" name ${name})
|
||||
|
||||
set(${lib_name} ${name})
|
||||
endmacro()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue