CMake: use additional search paths also for tool package
Use paths configured with QT_ADDITIONAL_PACKAGES_PREFIX_PATH to search also for the tool packages. Task-number: QTBUG-93565 Pick-to: 6.1 Change-Id: I611b275dd7c4e7ecceb073d16643cd225bbb21d8 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
2a86ea10ae
commit
60c87c6801
@ -63,7 +63,11 @@ foreach(_target_dep ${_tool_deps})
|
||||
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED)
|
||||
list(APPEND find_package_args REQUIRED)
|
||||
endif()
|
||||
find_package(${pkg} ${version} ${find_package_args})
|
||||
find_package(${pkg} ${version} ${find_package_args}
|
||||
PATHS
|
||||
${_qt_additional_packages_prefix_path}
|
||||
${_qt_additional_packages_prefix_path_env}
|
||||
)
|
||||
if (NOT ${pkg}_FOUND)
|
||||
if(NOT "${QT_HOST_PATH}" STREQUAL "")
|
||||
set(CMAKE_PREFIX_PATH ${BACKUP_@target@_CMAKE_PREFIX_PATH})
|
||||
|
Loading…
x
Reference in New Issue
Block a user