Use INSTALL_QMLDIR instead of Qt6_DIR for qmltypes properties
Change-Id: Ic7e6230656670ebe925530eea5e34b16b6fea59b Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
aa94565f89
commit
99da0c164b
@ -3632,7 +3632,7 @@ def handle_app_or_lib(
|
|||||||
|
|
||||||
install_dir = scope.expandString("QMLTYPES_INSTALL_DIR")
|
install_dir = scope.expandString("QMLTYPES_INSTALL_DIR")
|
||||||
if install_dir:
|
if install_dir:
|
||||||
install_dir = install_dir.replace("$$[QT_INSTALL_QML]", "${Qt6_DIR}/../../../qml")
|
install_dir = install_dir.replace("$$[QT_INSTALL_QML]", "${INSTALL_QMLDIR}")
|
||||||
cm_fh.write(f'{spaces(indent+1)}QT_QML_MODULE_INSTALL_DIR "{install_dir}"\n')
|
cm_fh.write(f'{spaces(indent+1)}QT_QML_MODULE_INSTALL_DIR "{install_dir}"\n')
|
||||||
|
|
||||||
cm_fh.write(f"{spaces(indent)})\n\n")
|
cm_fh.write(f"{spaces(indent)})\n\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user