Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

erlingrj
Copy link
Collaborator

@erlingrj erlingrj commented Nov 6, 2024

Needed for: lf-lang/lingua-franca#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.

@erlingrj erlingrj added the enhancement Enhancement of existing feature label Nov 6, 2024
@erlingrj erlingrj changed the title Add utility macro to stringify a macro Stringify CMake command-line arguments before they are added as compile definitions Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant