Enable vcpkg in tests when BuildTestsInTest is set


When the test build runs in the Test phase (BuildTestsInTest feature),
the qtgrpc Build phase that sets USE_VCPKG=ON does not run, so qtbase's
prepare_building_env.yaml never appends -DQT_USE_VCPKG=ON to the test
build and find_package(Protobuf) fails to locate protoc.

Mirror the Build-phase setter into the Test phase, gated on the
BuildTestsInTest feature.

Change-Id: I4b6f47e0530f1c85810a70cc53ddd6144e0d3f74
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitc0f1d638e6ef924a0f983004dc259a2681cbfcfb
parentfce5df38f38a0089b77694af55cf5db3de1f44d2
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeTue, 19 May 2026 09:26:08 +0000