From 749763277385710c4514d7bcc4609c08e2fbe37c Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Mon, 22 Mar 2021 23:40:23 +0100 Subject: [PATCH] [scripts] vcpkg_configure_make: do not set --build on macOS (#16596) * [scripts] vcpkg_configure_make: do not set --build on macOS * [scripts] vcpkg_configure_make: do not set --host on macOS --- scripts/cmake/vcpkg_configure_make.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/cmake/vcpkg_configure_make.cmake b/scripts/cmake/vcpkg_configure_make.cmake index c30de38bd3..95c1fb3227 100644 --- a/scripts/cmake/vcpkg_configure_make.cmake +++ b/scripts/cmake/vcpkg_configure_make.cmake @@ -437,10 +437,8 @@ function(vcpkg_configure_make) # --target: the machine that CC will produce binaries for # https://stackoverflow.com/questions/21990021/how-to-determine-host-value-for-configure-when-using-cross-compiler # Only for ports using autotools so we can assume that they follow the common conventions for build/target/host - set(_csc_BUILD_TRIPLET "--build=${BUILD_ARCH}-apple-darwin") if(NOT "${TARGET_ARCH}" STREQUAL "${BUILD_ARCH}") # we don't need to specify the additional flags if we build natively. - - list(APPEND _csc_BUILD_TRIPLET "--host=${TARGET_ARCH}-apple-darwin") # (Host activates crosscompilation; The name given here is just the prefix of the host tools for the target) + set(_csc_BUILD_TRIPLET "--host=${TARGET_ARCH}-apple-darwin") # (Host activates crosscompilation; The name given here is just the prefix of the host tools for the target) endif() debug_message("Using make triplet: ${_csc_BUILD_TRIPLET}") endif()