File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,9 @@ function(mbed_generate_options_for_linker target output_response_file_path)
7
7
"$<TARGET_PROPERTY:${target} ,INTERFACE_COMPILE_DEFINITIONS>"
8
8
)
9
9
10
- # Remove macro definitions that contain spaces as the lack of escape sequences and quotation marks
11
- # in the macro when retrieved using generator expressions causes linker errors.
12
- # This includes string macros, array macros, and macros with operations.
13
- # TODO CMake: Add escape sequences and quotation marks where necessary instead of removing these macros.
10
+ # Append -D to all macros and quote them as we pass these as response file to cxx compiler
14
11
set (_compile_definitions
15
- "$<FILTER:${_compile_definitions} ,EXCLUDE, +>"
16
- )
17
-
18
- # Append -D to all macros as we pass these as response file to cxx compiler
19
- set (_compile_definitions
20
- "$<$<BOOL:${_compile_definitions} >:-D$<JOIN:${_compile_definitions} , -D>>"
12
+ "$<$<BOOL:${_compile_definitions} >:'-D$<JOIN:${_compile_definitions} ,' '-D>'>"
21
13
)
22
14
file (GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR} /compile_time_defs.txt" CONTENT "${_compile_definitions} \n " )
23
15
set (${output_response_file_path} @${CMAKE_CURRENT_BINARY_DIR}/compile_time_defs.txt PARENT_SCOPE )
You can’t perform that action at this time.
0 commit comments