build script: fix combining make arguments

This commit is contained in:
alexey.lysiuk 2020-12-10 11:38:50 +02:00
parent f2f0711295
commit 32747133a3

View file

@ -46,7 +46,7 @@ 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 '' option = arg_name + ('=' + arg_value if arg_value else '')
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}'