Skip to content

Commit 43da666

Browse files
committed
chore: use the full name for boost version
1 parent 1e85147 commit 43da666

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/src/main/jni/cmake/Boost.cmake

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
#
33
# SPDX-License-Identifier: GPL-3.0-or-later
44

5-
set(BOOST_VER 1.89.0)
5+
set(BOOST_VERSION 1.89.0)
66

7-
if(NOT EXISTS "boost-${BOOST_VER}.tar.xz")
8-
message(STATUS "Downloading Boost ${BOOST_VER} ......")
7+
if(NOT EXISTS "boost-${BOOST_VERSION}.tar.xz")
8+
message(STATUS "Downloading Boost ${BOOST_VERSION} ......")
99
file(
1010
DOWNLOAD
11-
"https://github.com/boostorg/boost/releases/download/boost-${BOOST_VER}/boost-${BOOST_VER}-cmake.tar.xz"
12-
boost-${BOOST_VER}.tar.xz
11+
"https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz"
12+
boost-${BOOST_VERSION}.tar.xz
1313
EXPECTED_HASH
1414
SHA256=67acec02d0d118b5de9eb441f5fb707b3a1cdd884be00ca24b9a73c995511f74
1515
SHOW_PROGRESS)
@@ -19,10 +19,10 @@ if(NOT EXISTS "boost-${BOOST_VER}.tar.xz")
1919
endif()
2020

2121
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/boost")
22-
message(STATUS "Extracting Boost ${BOOST_VER} ......")
23-
file(ARCHIVE_EXTRACT INPUT boost-${BOOST_VER}.tar.xz DESTINATION
22+
message(STATUS "Extracting Boost ${BOOST_VERSION} ......")
23+
file(ARCHIVE_EXTRACT INPUT boost-${BOOST_VERSION}.tar.xz DESTINATION
2424
${CMAKE_SOURCE_DIR})
25-
file(RENAME "boost-${BOOST_VER}" boost)
25+
file(RENAME "boost-${BOOST_VERSION}" boost)
2626
endif()
2727

2828
set(BOOST_INCLUDE_LIBRARIES

0 commit comments

Comments
 (0)