mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
Update vcpkg.cmake (#24479)
This commit is contained in:
parent
0e3f52a12b
commit
4b766c1cd1
@ -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}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user