diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-05-12 10:55:37 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-05-12 13:03:11 +0200 |
commit | 64f62105ce8a1940125f3ae7b3fee14152f46944 (patch) | |
tree | 08b1509f85f1caa893a96da75fc950baeff40fb4 /util | |
parent | 6a90078d6bfe7900b6c9a6ea8c758172c7bc241f (diff) |
CMake: pro2cmake: Fix cmake api detection for plugins
We should search for the values of function names rather than
the mapping key.
Change-Id: Iedef7fcf4d716ff7f6d277d9626d9dc2dd781401
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-x | util/cmake/pro2cmake.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index f62d24a15c..1764868715 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -371,7 +371,7 @@ def detect_cmake_api_version_used_in_file_content(project_file_path: str) -> Opt with open(cmake_project_path, "r") as file_fd: contents = file_fd.read() - new_api_calls = [api_call for api_call in cmake_api_calls[2]] + new_api_calls = [cmake_api_calls[2][api_call] for api_call in cmake_api_calls[2]] new_api_calls_alternatives = "|".join(new_api_calls) match = re.search(new_api_calls_alternatives, contents) |