From 656729c5b65104376414e0ac6ef8798c0e63d9b0 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 17 Mar 2023 17:04:39 +0100 Subject: [PATCH] CMake: Write Qt's namespace into module info JSON files If Qt was configure with QT_NAMESPACE set, store that in the module information files under 'built_with.namespace'. Task-number: QTBUG-111158 Change-Id: I273309cb263c64f801dbb7238440336d7afa635e Reviewed-by: Amir Masoud Abdol Reviewed-by: Alexandru Croitor --- cmake/QtModuleHelpers.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/QtModuleHelpers.cmake b/cmake/QtModuleHelpers.cmake index 618889937b..15a49df84b 100644 --- a/cmake/QtModuleHelpers.cmake +++ b/cmake/QtModuleHelpers.cmake @@ -1093,6 +1093,10 @@ function(qt_describe_module target) endif() set(extra_build_information "") + if(NOT QT_NAMESPACE STREQUAL "") + string(APPEND extra_build_information " + \"namespace\": \"${QT_NAMESPACE}\",") + endif() if(ANDROID) string(APPEND extra_build_information " \"android\": {