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>
This commit is contained in:
Alexandru Croitor 2021-04-15 12:58:51 +02:00
parent cbb4c59c38
commit 9471febddf

View File

@ -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}",