Fix more uses of functions in handle_function_value

Change-Id: Ie6b6f79b50e9eaf605427f19a8c2ca86050e2f74
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
This commit is contained in:
Alexandru Croitor 2019-08-19 15:06:54 +02:00
parent 0575f6b360
commit 02074bf345

View File

@ -317,7 +317,8 @@ def handle_function_value(group: pp.ParseResults):
return str(group)
# Return the whole expression as a string.
if function_name in ['join', 'cmakeRelativePath', 'shell_quote', 'shadowed']:
if function_name in ['join', 'cmakeRelativePath', 'shell_quote', 'shadowed', 'cmakeTargetPath',
'shell_path']:
return 'join({})'.format(''.join(function_args))
raise RuntimeError('No logic to handle function "{}", please add one in handle_function_value().'.format(function_name))