PackageManager: Search for vcpkg in project root

Change-Id: I467476e6897f36558afc76a262f631cdaa47320e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-10-17 13:19:25 +02:00
parent 2e2248e80e
commit ab23ee98f9

View File

@@ -165,7 +165,7 @@ macro(qtc_auto_setup_vcpkg)
if (EXISTS "${CMAKE_SOURCE_DIR}/vcpkg.json" AND NOT QT_CREATOR_SKIP_VCPKG_SETUP)
option(QT_CREATOR_SKIP_VCPKG_SETUP "Skip Qt Creator's vcpkg package manager auto-setup" OFF)
find_program(vcpkg_program vcpkg)
find_program(vcpkg_program vcpkg ${CMAKE_SOURCE_DIR}/vcpkg)
if (NOT vcpkg_program)
message(WARNING "Qt Creator: vcpkg executable not found. "
"Package manager auto-setup will be skipped. "