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