diff --git a/cmake/ModuleDescription.json.in b/cmake/ModuleDescription.json.in index e8b58387d9e..5d41bc8e377 100644 --- a/cmake/ModuleDescription.json.in +++ b/cmake/ModuleDescription.json.in @@ -1,5 +1,5 @@ { - "schema_version": 2, + "schema_version": 3, "name": "${target}", "repository": "${lower_case_project_name}", "version": "${PROJECT_VERSION}",${extra_module_information} diff --git a/cmake/QtModuleHelpers.cmake b/cmake/QtModuleHelpers.cmake index 2f260d90f04..ac27997461e 100644 --- a/cmake/QtModuleHelpers.cmake +++ b/cmake/QtModuleHelpers.cmake @@ -1551,9 +1551,13 @@ ${indent3}\"name\": \"${platform_name}\",") string(APPEND platforms_information " ${indent3}\"variant\": \"${platform_variant}\",") endif() - if(NOT "${CMAKE_SYSTEM_VERSION}" STREQUAL "") + if(NOT "${CMAKE_SYSTEM_VERSION}" STREQUAL "" AND + NOT platform_name STREQUAL "Linux") string(APPEND platforms_information " ${indent3}\"version\": \"${CMAKE_SYSTEM_VERSION}\",") + else() + string(APPEND platforms_information " +${indent3}\"version\": null,") endif() string(APPEND platforms_information " ${indent3}\"compiler_id\": \"${CMAKE_CXX_COMPILER_ID}\",