Set VCPKG_INSTALL_PREFIX when building local dependencies with VCPKG

This commit is contained in:
Nicolas Godet 2024-10-29 08:47:56 +01:00 committed by Nyall Dawson
parent 7c9214ff81
commit a631b1fb89

View File

@ -38,6 +38,7 @@ if(NOT SDK_PATH STREQUAL "")
set(WITH_VCPKG ON)
elseif(WITH_VCPKG)
message(STATUS "Building local dependencies with VCPKG --")
set(VCPKG_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/vcpkg_installed")
include(VcpkgToolchain)
else()
message(STATUS "Building with system libraries --")