mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-16 11:31:19 +00:00
Combine commands to delete settings in a single try-catch block
This reduces boilerplate.
This commit is contained in:
@@ -57,12 +57,9 @@ class PackageConan(ConanFile):
|
||||
del self.options.fPIC # once removed by config_options, need try..except for a second del
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
del self.settings.compiler.libcxx # for plain C projects only
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
del self.settings.compiler.cppstd # for plain C projects only
|
||||
del self.settings.compiler.libcxx # for plain C projects only
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user