aedi: fix conversion of options to string

This commit is contained in:
alexey.lysiuk 2021-08-05 10:06:57 +03:00
parent 419a8d746c
commit 8b2ca77ba2
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ class CommandLineOptions(dict):
for arg_name, arg_value in self.items(): for arg_name, arg_value in self.items():
if rules == CommandLineOptions.MAKE_RULES: if rules == CommandLineOptions.MAKE_RULES:
option = arg_name + ('=' + arg_value if arg_value else '') arg_value = f'={arg_value}' if arg_value else ''
option = arg_name + arg_value
elif rules == CommandLineOptions.CMAKE_RULES: elif rules == CommandLineOptions.CMAKE_RULES:
arg_value = arg_value if arg_value else '' arg_value = arg_value if arg_value else ''
option = f'-D{arg_name}={arg_value}' option = f'-D{arg_name}={arg_value}'