mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
sdk: set default install prefix
Set default install prefix to match the Qt's prefix path. This makes deployment on Windows work as otherwise the default path would be some Windows path instead of target path in the device. Use CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT same as cmake so that projects can still set their default path if not forced from command line. Change-Id: If2d703a3f46abaeaa015df4e9385313498ec9d17 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
ab7a701fec
commit
9e69b0f3b0
|
|
@ -72,6 +72,11 @@ set(ENV{OECORE_NATIVE_SYSROOT} "${SDKPATHNATIVE}")
|
|||
set(ENV{OECORE_TARGET_SYSROOT} "${SDKTARGETSYSROOT}")
|
||||
set(ENV{SDKTARGETSYSROOT} "${SDKTARGETSYSROOT}")
|
||||
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT 1)
|
||||
endif()
|
||||
set(CMAKE_INSTALL_PREFIX "${prefix}" CACHE PATH "Install path prefix")
|
||||
|
||||
set(CMAKE_TOOLCHAIN_FILE "${SDKPATHNATIVE}/usr/share/cmake/OEToolchainConfig.cmake")
|
||||
include("\${CMAKE_TOOLCHAIN_FILE}")
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user