CMake: Fix escaping of quotes in response file
We put macros in a response file compile_time_defs.txt and pass it
to the compiler. Adding a pair of single quotes around each -D flag
ensures macro values are quoted correctly.

For example,
* String
  * target_compile_definitions(): either FOO="BAR" or FOO=\"BAR\"
  * response file: '-DFOO="BAR"'
  * actual definition: #define FOO "BAR"
* Array of integers
  * target_compile_definitions(): FOO={1, 2, 3}
  * response file: '-DFOO={1, 2, 3}'
  * actual definition: #define FOO {1, 2, 3}
ls
1 parent be31d50 commit d4ee3bd8452e180aa57a7e18dc1a482f87f6ebb6
@Lingkai Dong Lingkai Dong authored on 31 Aug 2021
Showing 1 changed file
View
tools/cmake/mbed_toolchain.cmake