From 02074bf345995def88d4e658af7d709101c94110 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 19 Aug 2019 15:06:54 +0200 Subject: [PATCH] Fix more uses of functions in handle_function_value Change-Id: Ie6b6f79b50e9eaf605427f19a8c2ca86050e2f74 Reviewed-by: Tobias Hunger Reviewed-by: Qt CMake Build Bot Reviewed-by: Leander Beernaert --- util/cmake/pro2cmake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 7c19c77ae8..8c805ea481 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -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))