aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-10-26 18:17:00 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-10-26 18:17:00 +0300
commit9419ef2b23e1b19a604b1e858837e3abfd684077 (patch)
tree1a50e4a9494b959acd60bf4b174fee57e62f235b
parent41ae1a0f0d86d2fc19f333ee23889c11beb0a4dd (diff)
downloadck-9419ef2b23e1b19a604b1e858837e3abfd684077.tar.gz
ck-9419ef2b23e1b19a604b1e858837e3abfd684077.tar.bz2
ck-9419ef2b23e1b19a604b1e858837e3abfd684077.zip
Add pacth number in version
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/ckinfo.h.in4
2 files changed, 4 insertions, 1 deletions
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"