Fix autotest config in cross-compiled prefix build
qt-cmake-standalone-test would be looking for the config files under the target machine install prefix instead of under the staging prefix on the build host. Change-Id: I29850af6d8fe502f4944f689ec10539d17ccdcb9 Pick-to: 6.0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
c0ebfb81de
commit
e26d2865a7
@ -421,8 +421,12 @@ function(qt_get_standalone_tests_confg_files_path out_var)
|
||||
|
||||
# QT_CONFIG_INSTALL_DIR is relative in prefix builds.
|
||||
if(QT_WILL_INSTALL)
|
||||
if(DEFINED CMAKE_STAGING_PREFIX)
|
||||
qt_path_join(path "${CMAKE_STAGING_PREFIX}" "${path}")
|
||||
else()
|
||||
qt_path_join(path "${CMAKE_INSTALL_PREFIX}" "${path}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set("${out_var}" "${path}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user