summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py2
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)