CMake: use HostInfo when QT_HOST_PATH is set
HostInfo is used in places whenever QT_HOST_PATH is set, regardless whether CMAKE_CROSSCOMPILING is set or not. Make sure that HostInfo is available when QT_HOST_PATH is set. Change-Id: I39763a61d77e97dc9c4cc3875bce4deb942f870a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
be7d46f5e2
commit
b376f8b9eb
@ -168,6 +168,9 @@ if (CMAKE_CROSSCOMPILING)
|
|||||||
if(NOT IS_DIRECTORY "${QT_HOST_PATH}")
|
if(NOT IS_DIRECTORY "${QT_HOST_PATH}")
|
||||||
message(FATAL_ERROR "You need to set QT_HOST_PATH to cross compile Qt.")
|
message(FATAL_ERROR "You need to set QT_HOST_PATH to cross compile Qt.")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(QT_HOST_PATH)
|
||||||
find_package(Qt${PROJECT_VERSION_MAJOR}HostInfo
|
find_package(Qt${PROJECT_VERSION_MAJOR}HostInfo
|
||||||
CONFIG
|
CONFIG
|
||||||
REQUIRED
|
REQUIRED
|
||||||
|
Loading…
Reference in New Issue
Block a user