mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
The FreeBSD spelling of x86-64 is amd64. (#19456)
CMAKE_HOST_SYSTEM_PROCESSOR is set to amd64 on x86-64 FreeBSD systems. CMake's STREQUAL gives a case-sensitive comparison so this case was missed during bootstrapping when using vcpkg as a submodule.
This commit is contained in:
parent
01e2abdfbf
commit
ad42c88e51
@ -311,7 +311,9 @@ else()
|
||||
cmake_policy(POP)
|
||||
return()
|
||||
endif()
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64" OR
|
||||
CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64" OR
|
||||
CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "amd64")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH x64)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "s390x")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH s390x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user