summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMÃ¥rten Nordheim <marten.nordheim@qt.io>2019-11-22 15:09:00 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2020-02-07 13:57:59 +0000
commit360d9fba237906e90559bf3477a39caf392af415 (patch)
tree110457885007f4f480597921c12ff4f51b3e67a1 /util
parentabc2e51041964f3decc2bf9c63b600d81552e23c (diff)
Use posixpath when generating relative path
Fixes generating some paths with the backslash in the beginning Change-Id: Ic7705d61f9362d3b854b2eb95f95a8951beca72d Reviewed-by: Qt CMake Build Bot Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'util')
-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 9d01dd73e2..a93c506169 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1229,7 +1229,7 @@ class Scope(object):
def get(self, key: str, *, ignore_includes: bool = False, inherit: bool = False) -> List[str]:
is_same_path = self.currentdir == self.basedir
if not is_same_path:
- relative_path = os.path.relpath(self.currentdir, self.basedir)
+ relative_path = posixpath.relpath(self.currentdir, self.basedir)
if key == "QQC2_SOURCE_TREE":
qmake_conf_path = find_qmake_conf(os.path.abspath(self.currentdir))