diff options
author | Tim Blechmann <[email protected]> | 2025-08-25 22:47:34 +0800 |
---|---|---|
committer | Tim Blechmann <[email protected]> | 2025-09-12 09:27:01 +0800 |
commit | a79ac8cbb483297da5cc150003962610a94f076d (patch) | |
tree | af5589e2b0ba98b9c45e0252d7191bf5e3695931 | |
parent | 36e6b151cd91c1029e1f42ae3f25588b3d31aa49 (diff) |
cmake: use QT_NAMESPACE property
QT_NAMESPACE is a public API to access the namespace from the Qt::Core
target, replacing the private _qt_namespace property
Pick-to: 6.10
Change-Id: I013be62bbe9068e0a9eb77ea2ffb40ac2f2f1b2e
Reviewed-by: Alexandru Croitor <[email protected]>
-rw-r--r-- | src/qml/Qt6QmlBuildInternals.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/Qt6QmlBuildInternals.cmake b/src/qml/Qt6QmlBuildInternals.cmake index b617fd49cf..d82dd670fc 100644 --- a/src/qml/Qt6QmlBuildInternals.cmake +++ b/src/qml/Qt6QmlBuildInternals.cmake @@ -302,7 +302,7 @@ function(qt_internal_add_qml_module target) message(FATAL_ERROR "Do not set FOLLOW_FOREIGN_VERSIONING for module ${target}. It is already set by default for internal modules.") endif() - get_target_property(qt_namespace ${QT_CMAKE_EXPORT_NAMESPACE}::Core _qt_namespace) + get_target_property(qt_namespace ${QT_CMAKE_EXPORT_NAMESPACE}::Core QT_NAMESPACE) if(qt_namespace) list(APPEND add_qml_module_args NAMESPACE ${qt_namespace}) endif() |