mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
* Additional fix to 7354515
* Update CMakeListsPrivate.txt.tpl
Also perform `replace('"', '\\"')`
This commit is contained in:
committed by
Ivan Kravets
parent
e4f8a1877c
commit
23ae8e0d3e
@ -8,9 +8,7 @@ SET(CMAKE_C_FLAGS_DISTRIBUTION "{{cc_flags}}")
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
% for define in defines:
|
||||
% if "##" not in define:
|
||||
add_definitions("-D{{!define.replace("(", "\(").replace(")", "\)").replace('"', '\\"')}}")
|
||||
% end
|
||||
add_definitions(-D'{{!re.sub(r"([\"()#])",r"\\\1",define)}}')
|
||||
% end
|
||||
|
||||
% for include in includes:
|
||||
|
Reference in New Issue
Block a user