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
conanfile options and None
#11451
Comments
If you want to allow None (not defined, please better write the option as |
Did this and the execution still went into the if statement:
The
|
Have you tried with |
One note is if I did So to get this all working the way I need to:
|
good point @fittyCent This was my mistake. There was an issue with exactly this, that has been recently fixed in #11449, and will be in next 1.50 release. |
None
seems to come in as a string'None'
when default_options is involved. In the folllowing conanfile,issue-line
is satisfied and the contents of the if-statement is executed even when my profile file doesn't containoptions.configuration
. If i change that line toif self.options.configuration != 'None'
, it works as expected (not going into the if-statement if configuration is None).My
conanfile.py
Environment Details (include every applicable attribute)
The text was updated successfully, but these errors were encountered: