Move the cmakeRelativePath function to cmake_functions.
Task-number: QTBUG-32570 Change-Id: I05bbf7084ef8501bf17698f2ecc1cf3d8fd4d460 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
27313d1244
commit
9b7adfa081
@ -63,3 +63,8 @@ defineReplace(cmakeProcessLibs) {
|
||||
}
|
||||
return ($$join(out, ";"))
|
||||
}
|
||||
|
||||
defineReplace(cmakeRelativePath) {
|
||||
path = $$relative_path($$1, $$2)
|
||||
return($$replace(path, ([^/])$, \\1/))
|
||||
}
|
||||
|
@ -11,11 +11,6 @@
|
||||
|
||||
load(cmake_functions)
|
||||
|
||||
defineReplace(cmakeRelativePath) {
|
||||
path = $$relative_path($$1, $$2)
|
||||
return($$replace(path, ([^/])$, \\1/))
|
||||
}
|
||||
|
||||
CMAKE_MODULE_NAME = $$cmakeModuleName($${MODULE})
|
||||
|
||||
CMAKE_MODULE_DEPS = $$cmakeModuleList($$sort_depends(QT.$${MODULE}.depends, QT.))
|
||||
|
Loading…
Reference in New Issue
Block a user