Prepend prefix path after loading toolchain file
The original toolchain file may set CMAKE_FIND_ROOT_PATH instead of appending it, which overrides the Qt's path. Change-Id: I69a4bf4be6a999854bb8a84cf5032c6a9b739b2e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
f6f6eab89f
commit
963017f588
@ -1,6 +1,3 @@
|
||||
list(APPEND CMAKE_PREFIX_PATH "@CMAKE_INSTALL_PREFIX@")
|
||||
list(APPEND CMAKE_FIND_ROOT_PATH "@CMAKE_INSTALL_PREFIX@")
|
||||
|
||||
@init_platform@
|
||||
|
||||
@init_qt_host_path@
|
||||
@ -14,6 +11,9 @@ if(qt_chainload_toolchain_file)
|
||||
unset(qt_chainload_toolchain_file)
|
||||
endif()
|
||||
|
||||
list(PREPEND CMAKE_PREFIX_PATH "@CMAKE_INSTALL_PREFIX@")
|
||||
list(PREPEND CMAKE_FIND_ROOT_PATH "@CMAKE_INSTALL_PREFIX@")
|
||||
|
||||
if(QT_HOST_PATH)
|
||||
list(APPEND CMAKE_PREFIX_PATH "${QT_HOST_PATH}")
|
||||
list(APPEND CMAKE_FIND_ROOT_PATH "${QT_HOST_PATH}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user