From 4b766c1cd17205e1b768c4fadfd5f867c1d0510e Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Thu, 5 May 2022 05:37:37 +0300 Subject: [PATCH] Update vcpkg.cmake (#24479) --- scripts/buildsystems/vcpkg.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index 0ae8473ffd..6362c8eaf2 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -345,6 +345,11 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR (NOT CMAKE_SYSTEM_NAME AND CMAKE_ set(Z_VCPKG_TARGET_TRIPLET_PLAT freebsd) endif() +if(EMSCRIPTEN) + set(Z_VCPKG_TARGET_TRIPLET_ARCH wasm32) + set(Z_VCPKG_TARGET_TRIPLET_PLAT emscripten) +endif() + set(VCPKG_TARGET_TRIPLET "${Z_VCPKG_TARGET_TRIPLET_ARCH}-${Z_VCPKG_TARGET_TRIPLET_PLAT}" CACHE STRING "Vcpkg target triplet (ex. x86-windows)") set(Z_VCPKG_TOOLCHAIN_DIR "${CMAKE_CURRENT_LIST_DIR}")