Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 'FOO={1, 2, 3}' * actual definition: #define FOO {1, 2, 3}
- Loading branch information