Skip to content

Commit 745d8f9

Browse files
mcpratdesmondc9
authored andcommitted
tools/cmake: fix download url with make variables
Use a make variable pattern for the url so that only one version number needs to be changed when version is bumped. Signed-off-by: Michael Pratt <[email protected]>
1 parent 0c3f251 commit 745d8f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/cmake/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ include $(TOPDIR)/rules.mk
88

99
PKG_NAME:=cmake
1010
PKG_VERSION:=3.24.2
11+
PKG_VERSION_MAJOR:=$(word 1,$(subst ., ,$(PKG_VERSION))).$(word 2,$(subst ., ,$(PKG_VERSION)))
1112
PKG_RELEASE:=1
1213
PKG_CPE_ID:=cpe:/a:kitware:cmake
1314

1415
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1516
PKG_SOURCE_URL:=https://github.com/Kitware/CMake/releases/download/v$(PKG_VERSION)/ \
16-
https://cmake.org/files/v3.24/
17+
https://cmake.org/files/v$(PKG_VERSION_MAJOR)/
1718
PKG_HASH:=0d9020f06f3ddf17fb537dc228e1a56c927ee506b486f55fe2dc19f69bf0c8db
1819

1920
HOST_BUILD_PARALLEL:=1

0 commit comments

Comments
 (0)