CMake: Add a clean_path before returning a path.
The $$path may already be absolute, so prepending a slash may result in //usr/lib, for example. Task-number: QTBUG-32570 Change-Id: If7a4f6fbec0216404cfe48c1da62d21d75b3e272 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
37ab8b4ed7
commit
27313d1244
@ -29,7 +29,7 @@ defineReplace(cmakeTargetPath) {
|
||||
SYSR = $$[QT_SYSROOT]
|
||||
!isEmpty(SYSR): path = $$relative_path($$1, $$[QT_SYSROOT])
|
||||
else: path = $$1
|
||||
return(/$$path)
|
||||
return($$clean_path(/$$path))
|
||||
}
|
||||
|
||||
defineReplace(cmakeTargetPaths) {
|
||||
|
Loading…
Reference in New Issue
Block a user