From 22e3b6d2292ded526354569a1ffb342a660f1f80 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 15 Apr 2021 12:34:56 +0200 Subject: CMake: Fix qml module version to use the repo project version Use PROJECT_VERSION instead of CMAKE_PROJECT_VERSION, so that the repo project version is used in a top-level build, rather than the version of the qt5 project. Pick-to: 6.1 6.0 Task-number: QTBUG-92861 Change-Id: Ifd12d6309f358b9b72372a5c069141ecb7322bc7 Reviewed-by: Joerg Bornemann --- src/imports/controlsimpl/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imports/controlsimpl/CMakeLists.txt') diff --git a/src/imports/controlsimpl/CMakeLists.txt b/src/imports/controlsimpl/CMakeLists.txt index 9d8049f5..1613024a 100644 --- a/src/imports/controlsimpl/CMakeLists.txt +++ b/src/imports/controlsimpl/CMakeLists.txt @@ -6,7 +6,7 @@ qt_internal_add_qml_module(qtquickcontrols2implplugin URI "QtQuick.Controls.impl" - VERSION "${CMAKE_PROJECT_VERSION}" + VERSION "${PROJECT_VERSION}" CLASSNAME QtQuickControls2ImplPlugin SKIP_TYPE_REGISTRATION SOURCES -- cgit v1.2.3