ref: f8d4d6f84fdef8c29af39a155baebd7d21391ae6
parent: 2c386d5a6c42ad61a2145b9d5d845b4c0e00c528
author: Simon Naarmann <s.naarmann@gmail.com>
date: Mon Sep 25 04:08:22 EDT 2017
header version to 2.0.0
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@
include(GNUInstallDirs)
# Bump major (== soversion) on API breakages
-set(DUMB_VERSION_MAJOR 1)
+set(DUMB_VERSION_MAJOR 2)
set(DUMB_VERSION_MINOR 0)
set(DUMB_VERSION ${DUMB_VERSION_MAJOR}.${DUMB_VERSION_MINOR})
--- a/include/dumb.h
+++ b/include/dumb.h
@@ -35,15 +35,16 @@
extern "C" {
#endif
-
-#define DUMB_MAJOR_VERSION 1
+/*
+ * When you bump major, minor, or patch, bump both the number and the string.
+ * When you bump major or minor version, bump them in CMakeLists.txt, too.
+ */
+#define DUMB_MAJOR_VERSION 2
#define DUMB_MINOR_VERSION 0
#define DUMB_REVISION_VERSION 0
+#define DUMB_VERSION_STR "2.0.0"
#define DUMB_VERSION (DUMB_MAJOR_VERSION*10000 + DUMB_MINOR_VERSION*100 + DUMB_REVISION_VERSION)
-
-#define DUMB_VERSION_STR "1.0.0"
-
#define DUMB_NAME "DUMB v" DUMB_VERSION_STR