summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index f5e678acd4..b46985e582 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -286,7 +286,11 @@ def find_qmake_conf(project_file_path: str = "") -> str:
if os.path.isfile(maybe_file):
return maybe_file
else:
+ last_cwd = cwd
cwd = os.path.dirname(cwd)
+ if last_cwd == cwd:
+ # reached the top level directory, stop looking
+ break
print(f"Warning: could not find .qmake.conf file")
return ""