From 9419ef2b23e1b19a604b1e858837e3abfd684077 Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 26 Oct 2018 18:17:00 +0300 Subject: Add pacth number in version --- CMakeLists.txt | 1 + src/ckinfo.h.in | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5c5620..217b5bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ project(ck C) # version set(ck_MAJOR_VERSION 0) set(ck_MINOR_VERSION 7) +set(ck_PATCH_VERSION 14) # Feature test macros set(FEATURE_TEST_MACROS "-D_DEFAULT_SOURCE") diff --git a/src/ckinfo.h.in b/src/ckinfo.h.in index 0d101f4..832532f 100644 --- a/src/ckinfo.h.in +++ b/src/ckinfo.h.in @@ -20,10 +20,12 @@ #define CK_MAJOR_VERSION @ck_MAJOR_VERSION@ #define CK_MINOR_VERSION @ck_MINOR_VERSION@ +#define CK_PATCH_VERSION @ck_PATCH_VERSION@ extern void print_version() { - printf("ck version %d.%d\n", CK_MAJOR_VERSION, CK_MINOR_VERSION); + printf("ck version %d.%d.%d\n", CK_MAJOR_VERSION, + CK_MINOR_VERSION, CK_PATCH_VERSION); printf("%s", "ck Copyright (C) 2018 gramanas\n" "This program comes with ABSOLUTELY NO WARRANTY.\n" "This is free software, and you are welcome to redistribute it under\n" -- cgit v1.2.3