diff options
author | Li Xinwei <1326710505@qq.com> | 2021-05-09 18:43:02 +0800 |
---|---|---|
committer | Li Xinwei <1326710505@qq.com> | 2021-05-10 20:46:17 +0800 |
commit | 6a61625d80efaad309548aaf0c02bd6ad881943a (patch) | |
tree | 27a3c11244763ad8b1c57810e6811046de22a3a8 | |
parent | 8ce2fd52e0d5ea8189c193db0138488bafedbd10 (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.
Pick-to: 6.1
Change-Id: I69e0f4e46b236a7f345d1578fff49eb39513a067
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-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 |