From 5e82334a25b4a2e78fbb6fccf04750eb48d97576 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 3 Jul 2024 08:15:05 +0200 Subject: [PATCH] Add Qt version information to developer package Set a QTC_QT_VERSION variable in the QtCreatorConfig.cmake that we ship with the development package. It is set to the Qt version that was used to build that binary package, which can be used for example by externally built plugins (which need to be built with a compatible Qt version to that). Task-number: QTCREATORBUG-31185 Change-Id: I21a94b12da337c46c0d619c8b5f8f9a661ca3525 Reviewed-by: Cristian Adam Reviewed-by: Artem Sokolovskii --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 792b3012f27..f537d8b9c4f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,6 +36,10 @@ install(EXPORT QtCreator ) file(WRITE ${CMAKE_BINARY_DIR}/cmake/QtCreatorConfig.cmake " +\# Qt version used for building +\# A compatible Qt version should be used by externally built plugins +set(QTC_QT_VERSION ${QT_VERSION}) + \# force plugins to same path naming conventions as Qt Creator \# otherwise plugins will not be found if(UNIX AND NOT APPLE)