diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/ckinfo.h.in | 4 |
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" |