From 5d2b8a6efd77041d82e1c252330a5008980175a7 Mon Sep 17 00:00:00 2001 From: CQ_Undefine <60255716+cqundefine@users.noreply.github.com> Date: Wed, 28 Jan 2026 10:17:21 +0100 Subject: [PATCH] scripts: Support autoconf cross compilation for *BSD and Solaris (#49438) --- scripts/cmake/vcpkg_configure_make.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cmake/vcpkg_configure_make.cmake b/scripts/cmake/vcpkg_configure_make.cmake index 7ee4b4a70a..a7986e0ae6 100644 --- a/scripts/cmake/vcpkg_configure_make.cmake +++ b/scripts/cmake/vcpkg_configure_make.cmake @@ -391,8 +391,8 @@ function(vcpkg_configure_make) endif() endif() - # Linux - cross-compiling support - if(VCPKG_TARGET_IS_LINUX) + # Linux / BSD / Solaris - cross-compiling support + if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_BSD OR VCPKG_TARGET_IS_SOLARIS) if (requires_autoconfig AND NOT arg_BUILD_TRIPLET OR arg_DETERMINE_BUILD_TRIPLET) # The regex below takes the prefix from the resulting CMAKE_C_COMPILER variable eg. arm-linux-gnueabihf-gcc # set in the common toolchains/linux.cmake