mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 14:49:25 +08:00
fix: return when none options
This commit is contained in:
@@ -10,6 +10,8 @@ class CMakePackageBuilder(PackageBuilder):
|
|||||||
self.cmakelists: CMakeLists = None
|
self.cmakelists: CMakeLists = None
|
||||||
|
|
||||||
def set_options(self, options):
|
def set_options(self, options):
|
||||||
|
if options is None:
|
||||||
|
return self
|
||||||
options_dict = asdict(options)
|
options_dict = asdict(options)
|
||||||
l = []
|
l = []
|
||||||
for k, v in options_dict.items():
|
for k, v in options_dict.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user