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

Fix cmake syntax #440

Merged
merged 2 commits into from
May 31, 2024
Merged

Fix cmake syntax #440

merged 2 commits into from
May 31, 2024

Conversation

edwardalee
Copy link
Contributor

@edwardalee edwardalee commented May 31, 2024

The CMake syntax previously given does not parse when NUMBER_OF_WORKERS is not defined (apparently, it tries to parse the whole thing with NUMBER_OF_WORKERS replaced by nothing), at least with cmake version 3.27.6. This fixes that problem.

This also fixes lingua-franca-ref.txt to point to master.

Copy link
Contributor

@cmnrd cmnrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Is there a specific reason to do the check in cmake and not in the LF validator?

@edwardalee edwardalee added this pull request to the merge queue May 31, 2024
@edwardalee
Copy link
Contributor Author

Looks good. Is there a specific reason to do the check in cmake and not in the LF validator?

No reason that I know of. But it's interesting that CMake semantics of AND doesn't match that of most programming languages because, apparently, it evaluates its arguments before it parses the expression.

Merged via the queue into main with commit 7da949d May 31, 2024
29 checks passed
@cmnrd cmnrd deleted the cmake-resilience branch June 3, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants