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