diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2019-09-23 13:27:49 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2019-09-24 17:53:00 +0000 |
commit | 4b592ba90c4a9da3bd5707e70c9d0e25891bda25 (patch) | |
tree | 48cf9527d51d28fa9c17805f89bfc0e90d71b496 | |
parent | 7811bd81d03c9d39c70088e6d32bc0922d6c2859 (diff) |
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
-rwxr-xr-x | util/cmake/pro2cmake.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 4a88bf95b8..bb5c23f8da 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): |