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

cmake: simplify try_run result comparisons #950

Merged
merged 1 commit into from
Aug 23, 2021

Commits on Aug 22, 2021

  1. cmake: simplify try_run result comparisons

    Instead of looking at `MATCHES 0` which runs a regex and returns a false
    positive for any result such as `10`, check if they are equal to `0`.
    Also quote `0` to avoid looking it up as a variable (which was left
    behind prior to the fix to use `${RETURN_VAR}` in the `c_run` macro).
    mathstuf committed Aug 22, 2021
    Configuration menu
    Copy the full SHA
    4f6bbfb View commit details
    Browse the repository at this point in the history