Skip to content

Commit b1a9041

Browse files
committed
fix(build): replace boost with backports
Boost v1.87.0 is not currently compatible with WoA, backport the following context: Support building assembly files for mingw-w64 on arm64 with CMake Link: boostorg/context@f82483d uuid: fix: Disable libatomic link for windows arm64 Link: boostorg/uuid#176 Signed-off-by: Coia Prant <[email protected]>
1 parent ea61996 commit b1a9041

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

cmake/dependencies/Boost_Sunshine.cmake

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,19 @@ if(NOT Boost_FOUND)
5454

5555
# Limit boost to the required libraries only
5656
set(BOOST_INCLUDE_LIBRARIES ${BOOST_COMPONENTS})
57-
set(BOOST_URL "https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz") # cmake-lint: disable=C0301
58-
set(BOOST_HASH "SHA256=7da75f171837577a52bbf217e17f8ea576c7c246e4594d617bfde7fafd408be5")
57+
# set(BOOST_URL "https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz") # cmake-lint: disable=C0301
58+
# set(BOOST_HASH "SHA256=7da75f171837577a52bbf217e17f8ea576c7c246e4594d617bfde7fafd408be5")
59+
60+
# Build Windows Arm64 must backport following:
61+
#
62+
# context: Support building assembly files for mingw-w64 on arm64 with CMake
63+
# Link: https://github.com/boostorg/context/commit/f82483d343c6452c62ec89a48d22a3a7e565373d
64+
#
65+
# uuid: fix: Disable libatomic link for windows arm64
66+
# Link: https://github.com/boostorg/uuid/pull/176
67+
#
68+
set(BOOST_URL "https://github.com/rbqvq/Sunshine/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz") # cmake-lint: disable=C0301
69+
set(BOOST_HASH "SHA256=e58510fc9e7c6035e0f83a433be90e0b2043c5665f3e6592533132dafc4a4792")
5970

6071
if(CMAKE_VERSION VERSION_LESS "3.24.0")
6172
FetchContent_Declare(

0 commit comments

Comments
 (0)