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

View file

@ -39,7 +39,8 @@ class CommandLineOptions(dict):
for arg_name, arg_value in self.items():
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:
arg_value = arg_value if arg_value else ''
option = f'-D{arg_name}={arg_value}'