Add versioned alias for the Platform target

It's necessary to have versioned alias of the Platform target to use
versioned target in the installable cmake files.

Change-Id: I79286e1c0642068bdfa5d24c1087ee0c39e48f1a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 8f238788de8fddd08c63a3437029ddfe19a9ee52)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexey Edelev 2021-04-26 17:04:45 +02:00 committed by Qt Cherry-pick Bot
parent 2cb397675c
commit bf18741f79

View File

@ -4,6 +4,7 @@ function(qt_internal_setup_public_platform_target)
## QtPlatform Target:
add_library(Platform INTERFACE)
add_library(Qt::Platform ALIAS Platform)
add_library(${INSTALL_CMAKE_NAMESPACE}::Platform ALIAS Platform)
target_include_directories(Platform
INTERFACE
$<BUILD_INTERFACE:${QT_PLATFORM_DEFINITION_DIR_ABSOLUTE}>