pro2cmake: Do not error out if $$files is called with a 2nd parameter

Do not stop the whole conversion if we encounter $$files(..., true).
Ignore the 2nd parameter for now.

Change-Id: If9334ce9719b98c33716dc7f18ba8aede05fe8b1
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CMake Build Bot
This commit is contained in:
Joerg Bornemann 2019-09-23 13:27:49 +02:00
parent 7811bd81d0
commit 4b592ba90c

View File

@ -623,10 +623,6 @@ def handle_function_value(group: pp.ParseResults):
return str(group) return str(group)
if function_name == "files": if function_name == "files":
if len(function_args) > 1:
raise RuntimeError(
"Don't know what to with more than one function argument for $$files()."
)
return str(function_args[0]) return str(function_args[0])
if isinstance(function_args, pp.ParseResults): if isinstance(function_args, pp.ParseResults):