diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-11-25 13:39:00 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-12-01 15:13:09 +0200 |
commit | 8499718351f3b2068a67c99c7ccd2981f1eeb5c4 (patch) | |
tree | 7c7b5c03f5f97b1912f8992a6a2dbfd80bec896e /src | |
parent | 20e341d495e3c8653ab5dbde83b1d5ab945fb513 (diff) | |
download | qtbase-8499718351f3b2068a67c99c7ccd2981f1eeb5c4.tar.gz |
CMake: don't add empty QT_ANDROID_APPLICATION_ARGUMENTS to Json
Pick-to: 6.0
Change-Id: I471da3f733046aeaa8381bbdeeba3ee2775b97eb
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/Qt6AndroidMacros.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/Qt6AndroidMacros.cmake b/src/corelib/Qt6AndroidMacros.cmake index aa95eb99b2..6556bb59e0 100644 --- a/src/corelib/Qt6AndroidMacros.cmake +++ b/src/corelib/Qt6AndroidMacros.cmake @@ -177,8 +177,10 @@ endif() " \"application-binary\": \"${target_output_name}\",\n") # App command-line arguments - string(APPEND file_contents - " \"android-application-arguments\": \"${QT_ANDROID_APPLICATION_ARGUMENTS}\",\n") + if (QT_ANDROID_APPLICATION_ARGUMENTS) + string(APPEND file_contents + " \"android-application-arguments\": \"${QT_ANDROID_APPLICATION_ARGUMENTS}\",\n") + endif() # Override qmlimportscanner binary path set(qml_importscanner_binary_path "${QT_HOST_PATH}/bin/qmlimportscanner") |