diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-04-15 12:58:51 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-04-15 14:23:11 +0200 |
commit | 9471febddfa66eaf5cacaf7c6cb43e769f4f7712 (patch) | |
tree | ccd14a2f987228bd1f0a763b3fda085bb756be1c /cmake/ModuleDescription.json.in | |
parent | cbb4c59c38cca77133ea1b7a65004ee10bb021dc (diff) |
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 <alexey.edelev@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/ModuleDescription.json.in')
-rw-r--r-- | cmake/ModuleDescription.json.in | 2 |
1 files changed, 1 insertions, 1 deletions
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}", |