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:
parent
2cb397675c
commit
bf18741f79
@ -4,6 +4,7 @@ function(qt_internal_setup_public_platform_target)
|
|||||||
## QtPlatform Target:
|
## QtPlatform Target:
|
||||||
add_library(Platform INTERFACE)
|
add_library(Platform INTERFACE)
|
||||||
add_library(Qt::Platform ALIAS Platform)
|
add_library(Qt::Platform ALIAS Platform)
|
||||||
|
add_library(${INSTALL_CMAKE_NAMESPACE}::Platform ALIAS Platform)
|
||||||
target_include_directories(Platform
|
target_include_directories(Platform
|
||||||
INTERFACE
|
INTERFACE
|
||||||
$<BUILD_INTERFACE:${QT_PLATFORM_DEFINITION_DIR_ABSOLUTE}>
|
$<BUILD_INTERFACE:${QT_PLATFORM_DEFINITION_DIR_ABSOLUTE}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user