QT_HARMONYOS_TARGET_ARCHS
The target architectures of the HarmonyOS application.
This property was introduced in Qt 6.12.
Note: This property is in technology preview and may change in future releases.
Note: This property is used only if targeting the HarmonyOS platform.
Specifies the list of target architectures that the HAP package is built for. Use arm64-v8a for physical devices and x86_64 for the emulator. The value must match the architecture Qt was built for, OHOS_ARCH. CMake does not validate it.
If this property is not set, it defaults to the architecture of the current build, OHOS_ARCH.
Note: Building a HAP for multiple architectures is not yet supported. If more than one architecture is specified, only the first one is used and a warning is issued.
set_target_properties(myapp PROPERTIES
QT_HARMONYOS_TARGET_ARCHS "arm64-v8a"
)See also Qt for HarmonyOS and Setting CMake variables and properties.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.