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 <cristian.adam@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This commit is contained in:
Eike Ziller
2024-07-03 08:15:05 +02:00
parent 74eda13a43
commit 5e82334a25

View File

@@ -36,6 +36,10 @@ install(EXPORT QtCreator
) )
file(WRITE ${CMAKE_BINARY_DIR}/cmake/QtCreatorConfig.cmake " 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 \# force plugins to same path naming conventions as Qt Creator
\# otherwise plugins will not be found \# otherwise plugins will not be found
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)