diff options
author | hjk <[email protected]> | 2021-06-09 17:05:50 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2021-06-14 08:43:45 +0000 |
commit | e35235ea72daa23838e7b79b40e6539dbed2b278 (patch) | |
tree | fb0a4c51ff77e39ddd6f88529ec523cdcd1c1304 /src/libs/utils/fileutils.cpp | |
parent | 0e6a4e757c221512d823d0f4a24e744b8c11cb54 (diff) |
CMake: Collect also remote filenames from generateBuildTargets()
QDir::cleanPath(...) doesn't do the right thing on stringified
Utils::FilePaths. Use FilePath functions instead.
Change-Id: Ied66f38dd30a15694bce12ed57d37411bb87f680
Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/libs/utils/fileutils.cpp')
-rw-r--r-- | src/libs/utils/fileutils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/utils/fileutils.cpp b/src/libs/utils/fileutils.cpp index 5575749710d..a5965590a7d 100644 --- a/src/libs/utils/fileutils.cpp +++ b/src/libs/utils/fileutils.cpp @@ -997,6 +997,13 @@ FilePath FilePath::absoluteFilePath() const return result; } +FilePath FilePath::absoluteFilePath(const FilePath &tail) const +{ + if (FileUtils::isRelativePath(tail.m_data)) + return pathAppended(tail.m_data); + return tail; +} + /// Constructs an absolute FilePath from this path which /// is interpreted as being relative to \a anchor. FilePath FilePath::absoluteFromRelativePath(const FilePath &anchor) const |