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>
This commit is contained in:
parent
6a90078d6b
commit
64f62105ce
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user