GHS: Quoting issues when using target_compile_options() and add_custom_command()
When using the command in the CMakeLists.txt file
target_compile_options(my_target BEFORE PRIVATE :optionsFile=${__OPTIONDEFS}/full_c_vas_program.opt )
the generated output was
:optionsFile=$${__OPTIONDEFS}/full_c_vas_program.opt
I was expecting it to be
:optionsFile=${__OPTIONDEFS}/full_c_vas_program.opt
I traced to several lines of code in cmOutputConverter.cxx
where it was performing Makefile
quoting. I adapted the file to not perform any special quoting when using the GHS Multi generator.
#16488 (closed) Feature 4 and Feature 5 included patches for fixing add_custom_command()
.