Remove leading '/' from target paths.
This is inappropriate on Windows, and breaks non-prefix builds there. This is only needed when we calculate a relative path from a sysroot, so only add it in that case. Task-number: QTBUG-34880 Change-Id: I0e3b3d977a7b56649e4ba0077ac574aabf1dc915 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
08f3177fdf
commit
f03fd0d82a
@ -27,9 +27,9 @@ defineReplace(cmakeModuleList) {
|
||||
|
||||
defineReplace(cmakeTargetPath) {
|
||||
SYSR = $$[QT_SYSROOT]
|
||||
!isEmpty(SYSR): path = $$relative_path($$1, $$[QT_SYSROOT])
|
||||
!isEmpty(SYSR): path = /$$relative_path($$1, $$[QT_SYSROOT])
|
||||
else: path = $$1
|
||||
return($$clean_path(/$$path))
|
||||
return($$clean_path($$path))
|
||||
}
|
||||
|
||||
defineReplace(cmakeTargetPaths) {
|
||||
|
Loading…
Reference in New Issue
Block a user