1From 11ab355fdda93b762fcc07ac3f7c6ab1be0a5f5a Mon Sep 17 00:00:00 2001 2From: Gregory Anders <greg@gpanders.com> 3Date: Wed, 21 Oct 2020 15:27:07 -0600 4Subject: [PATCH] Add version information to libmetis 5 6--- 7Upstream-Status: Pending 8 9 metis-5.1.0/Makefile | 8 ++++---- 10 metis-5.1.0/libmetis/CMakeLists.txt | 1 + 11 2 files changed, 5 insertions(+), 4 deletions(-) 12 13diff --git a/metis-5.1.0/Makefile b/metis-5.1.0/Makefile 14index 9cc03b9..c445d85 100644 15--- a/metis-5.1.0/Makefile 16+++ b/metis-5.1.0/Makefile 17@@ -18,8 +18,11 @@ systype = $(shell uname -s) 18 19 BUILDDIR = build/$(systype)-$(cputype) 20 21+VERNUM=5.1.0 22+PKGNAME=metis-$(VERNUM) 23+ 24 # Process configuration options. 25-CONFIG_FLAGS = 26+CONFIG_FLAGS = -DMETIS_VERSION=$(VERNUM) 27 ifeq ($(gklib_path), not-set) 28 gklib_path = GKlib 29 endif 30@@ -52,9 +55,6 @@ ifneq ($(cc), not-set) 31 CONFIG_FLAGS += -DCMAKE_C_COMPILER=$(cc) 32 endif 33 34-VERNUM=5.1.0 35-PKGNAME=metis-$(VERNUM) 36- 37 JOBS ?= 1 38 39 define run-config 40diff --git a/metis-5.1.0/libmetis/CMakeLists.txt b/metis-5.1.0/libmetis/CMakeLists.txt 41index 120e94d..11bde87 100644 42--- a/metis-5.1.0/libmetis/CMakeLists.txt 43+++ b/metis-5.1.0/libmetis/CMakeLists.txt 44@@ -4,6 +4,7 @@ include_directories(.) 45 file(GLOB metis_sources *.c) 46 # Build libmetis. 47 add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources}) 48+set_target_properties(metis PROPERTIES VERSION ${METIS_VERSION}) 49 if(UNIX) 50 target_link_libraries(metis m) 51 endif() 52