aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hahn <ddavidhahn@berkeley.edu>2020-04-27 14:47:36 -0700
committerGitHub <noreply@github.com>2020-04-27 14:47:36 -0700
commit89d112b839a61f81fb5f341c908d6412e3855228 (patch)
tree35694a3f1ec5c322333b291155df7d79bb077552
parentb7c44f980772b520735417179d4cd79d54d0c245 (diff)
downloadvcpkg-89d112b839a61f81fb5f341c908d6412e3855228.tar.gz
vcpkg-89d112b839a61f81fb5f341c908d6412e3855228.zip
[boost-modular-build] Fix lack of arm64-linux support (#10814)
* Fix boost modular build for ARM64 builds on Linux * Add error message * Fix endif error * Fix typo in error msg * Bump up version
-rw-r--r--ports/boost-modular-build-helper/boost-modular-build.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/ports/boost-modular-build-helper/boost-modular-build.cmake b/ports/boost-modular-build-helper/boost-modular-build.cmake
index f254cb5a3..765d882b8 100644
--- a/ports/boost-modular-build-helper/boost-modular-build.cmake
+++ b/ports/boost-modular-build-helper/boost-modular-build.cmake
@@ -6,7 +6,9 @@ function(boost_modular_build)
endif()
# Todo: this serves too similar a purpose as vcpkg_find_acquire_program()
- if(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
+ set(BOOST_BUILD_PATH "${CURRENT_INSTALLED_DIR}/../x64-linux/tools/boost-build")
+ elseif(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
get_filename_component(BOOST_BUILD_PATH "${CURRENT_INSTALLED_DIR}/../x86-windows/tools/boost-build" ABSOLUTE)
elseif(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" AND NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
get_filename_component(BOOST_BUILD_PATH "${CURRENT_INSTALLED_DIR}/../x86-windows/tools/boost-build" ABSOLUTE)
@@ -15,7 +17,11 @@ function(boost_modular_build)
endif()
if(NOT EXISTS "${BOOST_BUILD_PATH}")
- message(FATAL_ERROR "The x86 boost-build tools must be installed to build for non-x86/x64 platforms. Please run `vcpkg install boost-build:x86-windows`.")
+ if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
+ message(FATAL_ERROR "The x64 boost-build tools must be installed to build arm64 for Linux. Please run `vcpkg install boost-build:x64-linux`.")
+ else()
+ message(FATAL_ERROR "The x86 boost-build tools must be installed to build for non-x86/x64 platforms. Please run `vcpkg install boost-build:x86-windows`.")
+ endif()
endif()
if(EXISTS "${BOOST_BUILD_PATH}/b2.exe")