mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 02:11:58 +08:00
Fix OpenBSD support (#40141)
This commit is contained in:
parent
a77d228511
commit
d418101aeb
@ -116,9 +116,9 @@ vcpkgCheckEqualFileHash()
|
||||
|
||||
if command -v "sha512sum" >/dev/null 2>&1 ; then
|
||||
actualHash=$(sha512sum "$filePath")
|
||||
elif command -v "gsha512sum" >/dev/null 2>&1 ; then
|
||||
# OpenBSD's coreutil's sha512sum is prefixed with a `g`
|
||||
actualHash=$(gsha512sum "$filePath")
|
||||
elif command -v "sha512" >/dev/null 2>&1 ; then
|
||||
# OpenBSD
|
||||
actualHash=$(sha512 -q "$filePath")
|
||||
else
|
||||
# [g]sha512sum is not available by default on osx
|
||||
# shasum is not available by default on Fedora
|
||||
|
@ -364,6 +364,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR (NOT CMAKE_SYSTEM_NAME AND CMAKE_
|
||||
endif()
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR (NOT CMAKE_SYSTEM_NAME AND CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD"))
|
||||
set(Z_VCPKG_TARGET_TRIPLET_PLAT freebsd)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR (NOT CMAKE_SYSTEM_NAME AND CMAKE_HOST_SYSTEM_NAME STREQUAL "OpenBSD"))
|
||||
set(Z_VCPKG_TARGET_TRIPLET_PLAT openbsd)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Android" OR (NOT CMAKE_SYSTEM_NAME AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Android"))
|
||||
set(Z_VCPKG_TARGET_TRIPLET_PLAT android)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user