From 4b592ba90c4a9da3bd5707e70c9d0e25891bda25 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 23 Sep 2019 13:27:49 +0200 Subject: [PATCH] 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 Reviewed-by: Alexandru Croitor Reviewed-by: Qt CMake Build Bot --- util/cmake/pro2cmake.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 4a88bf95b8e..bb5c23f8da5 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -623,10 +623,6 @@ def handle_function_value(group: pp.ParseResults): return str(group) 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]) if isinstance(function_args, pp.ParseResults):