diff options
author | Li Xinwei <1326710505@qq.com> | 2021-05-09 18:43:02 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-05-11 06:37:39 +0000 |
commit | 58dd73d5918da3f68b23c7fbb8a1cca0fb77652c (patch) | |
tree | 54fcb6def6b3a7e643f63089ccaeff70d256a141 | |
parent | e3e860f36b788f6dd91aba55a333ae8573cfe6b5 (diff) |
CMake: fix "$$QT_VERSION" in TARGET_PRODUCT
If you install Qt 6.1 on Windows, right click Qt6Charts.dll to view its
properties, you can see "Qt Charts (Qt $$QT_VERSION)", it's wrong.
"$$QT_VERSION" is "qmake-style", cannot be identified by CMake.
In CMake, we should use "${PROJECT_VERSION}" instead.
Change-Id: I69e0f4e46b236a7f345d1578fff49eb39513a067
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 6a61625d80efaad309548aaf0c02bd6ad881943a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/charts/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charts/CMakeLists.txt b/src/charts/CMakeLists.txt index 7a57c7da..16fe06c5 100644 --- a/src/charts/CMakeLists.txt +++ b/src/charts/CMakeLists.txt @@ -5,7 +5,7 @@ ##################################################################### qt_internal_add_module(Charts - TARGET_PRODUCT "Qt Charts (Qt $$QT_VERSION)" + TARGET_PRODUCT "Qt Charts (Qt ${PROJECT_VERSION})" TARGET_DESCRIPTION "Charts component for Qt." SOURCES animations/axisanimation.cpp animations/axisanimation_p.h |