Skip to content

Commit

Permalink
CMake: use additional search paths also for tool package
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sapiippo committed May 10, 2021
1 parent 2a86ea1 commit 60c87c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/QtModuleDependencies.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 60c87c6

Please sign in to comment.