lf-lang / reactor-c

A reactor runtime written in C
Other
12 stars 24 forks source link

Stringify CMake command-line arguments before they are added as compile definitions #494

Open erlingrj opened 2 weeks ago

erlingrj commented 2 weeks ago

Needed for: https://github.com/lf-lang/lingua-franca/pull/2432

The paths to the source directory, binary directory and src-gen directory are passed to CMake as command line arguments. They are originally passed as strings using quotation marks. In the LF change linked I remove the quotation marks because it means you cannot easily use them in CMake. I think these paths are most useful for the user when he adds a cmake-include.

So in this PR I add quotation marks to the paths before they are made into compile definitions so that they conveniently can be used in the user C code as well.