From 9471febddfa66eaf5cacaf7c6cb43e769f4f7712 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 15 Apr 2021 12:58:51 +0200 Subject: [PATCH] CMake: Use PROJECT_VERSION for generated QtModule.json files So that the correct version is generated in top-level builds. Change-Id: I360370815ce178564cc79157dc61d70adfd4f947 Reviewed-by: Alexey Edelev Reviewed-by: Joerg Bornemann --- cmake/ModuleDescription.json.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/ModuleDescription.json.in b/cmake/ModuleDescription.json.in index e29f3f176d..6aae9a4a59 100644 --- a/cmake/ModuleDescription.json.in +++ b/cmake/ModuleDescription.json.in @@ -1,6 +1,6 @@ { "module_name": "${target}", - "version": "${CMAKE_PROJECT_VERSION}", + "version": "${PROJECT_VERSION}", "built_with": { "compiler_id": "${CMAKE_CXX_COMPILER_ID}", "compiler_target": "${CMAKE_CXX_COMPILER_TARGET}",