fix: std_format Conan option can be removed in configure

This commit is contained in:
Mateusz Pusz
2024-07-29 10:25:09 +02:00
parent d04d546b17
commit 9448ef52b9

View File

@ -239,7 +239,7 @@ class MPUnitsConan(ConanFile):
raise ConanInvalidConfiguration(
"'contracts' should be set to 'none' to use `import std;`"
)
if not self.options.std_format:
if not self.options.get_safe("std_format", default=True):
raise ConanInvalidConfiguration(
"'std_format' should be enabled to use `import std;`"
)