How to check if a variable is not defined? #12411
-
For user friendliness reasons, I would like to check if a variable is not defined and issue a proper error message instead of the current Is this possible? |
Beta Was this translation helpful? Give feedback.
Answered by
mitchgrout
Oct 24, 2023
Replies: 1 comment 3 replies
-
What is improper about the error message that meson produces? What error message do you want to give instead? Note that |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://mesonbuild.com/Reference-manual_functions.html#is_variable
A one-to-one conversion from cmake to meson would be
however I would probably pick a more natural expression like
There are other options on how to deal with this depending on how you're getting these values; if you could provide a simplified project structure, we could discuss how best to set this up?