Update vcpkg.cmake (#24479)

This commit is contained in:
Leonid Pospelov 2022-05-05 05:37:37 +03:00 committed by GitHub
parent 0e3f52a12b
commit 4b766c1cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,6 +345,11 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR (NOT CMAKE_SYSTEM_NAME AND CMAKE_
set(Z_VCPKG_TARGET_TRIPLET_PLAT freebsd) set(Z_VCPKG_TARGET_TRIPLET_PLAT freebsd)
endif() 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(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}") set(Z_VCPKG_TOOLCHAIN_DIR "${CMAKE_CURRENT_LIST_DIR}")