mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-03-15 19:31:43 +00:00
[chore][cmake] fix escape
This commit is contained in:
parent
4799ec132e
commit
300008f510
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ foreach(item ${C_CPP_PROPERTIES_INCLUDE})
|
|||
endforeach()
|
||||
|
||||
foreach(item ${C_CPP_PROPERTIES_DEFINES})
|
||||
string(APPEND C_CPP_PROPERTIES_DEFINES_IN "\n \"${item}\",")
|
||||
string(REGEX REPLACE "([^\"])([\"])" "\\1\\\\\"" nitem ${item})
|
||||
string(APPEND C_CPP_PROPERTIES_DEFINES_IN "\n \"${nitem}\",")
|
||||
endforeach()
|
||||
|
||||
get_filename_component(SYS_INCLUDE_PATH ${CMAKE_C_COMPILER} DIRECTORY)
|
||||
|
|
Loading…
Add table
Reference in a new issue