From 58dd73d5918da3f68b23c7fbb8a1cca0fb77652c Mon Sep 17 00:00:00 2001 From: Li Xinwei <1326710505@qq.com> Date: Sun, 9 May 2021 18:43:02 +0800 Subject: 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 (cherry picked from commit 6a61625d80efaad309548aaf0c02bd6ad881943a) Reviewed-by: Qt Cherry-pick Bot --- src/charts/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3