Skip to content

Commit

Permalink
fix: remove obsolete version of boost
Browse files Browse the repository at this point in the history
  • Loading branch information
Bambooin committed Dec 24, 2023
1 parent 1043b57 commit e5ea247
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/src/main/jni/cmake/Boost.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
set(BOOST_VER 1.84.0)

if(NOT EXISTS "${CMAKE_SOURCE_DIR}/boost")
if(NOT EXISTS "boost-${BOOST_VER}.tar.xz")
message(STATUS "Downloading Boost ${BOOST_VER} ......")
file(
DOWNLOAD "https://github.com/boostorg/boost/releases/download/boost-${BOOST_VER}/boost-${BOOST_VER}.tar.xz" boost-${BOOST_VER}.tar.xz
EXPECTED_HASH SHA256=2e64e5d79a738d0fa6fb546c6e5c2bd28f88d268a2a080546f74e5ff98f29d0e
SHOW_PROGRESS
)

message(STATUS "Remove older version Boost")
file(REMOVE_RECURSE "${CMAKE_SOURCE_DIR}/boost")
endif()

if(NOT EXISTS "${CMAKE_SOURCE_DIR}/boost")
message(STATUS "Extracting Boost ${BOOST_VER} ......")
file(ARCHIVE_EXTRACT INPUT boost-${BOOST_VER}.tar.xz
DESTINATION ${CMAKE_SOURCE_DIR}
)
Expand Down

0 comments on commit e5ea247

Please sign in to comment.