From a46be28d077b4f19f4e8537982487e33e20e4f0c Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 27 Mar 2017 23:44:35 +0200 Subject: sqlitepp.h: Add complete version as SQLITEPP_VERSION --- Makefile | 3 ++- include/sqlitepp/sqlitepp.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a455917..14531ae 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,8 @@ DEPENDS := $(DEPENDS_LIB) $(DEPENDS_TEST) CPPFLAGS += -MMD -MP -I$(INCLUDE_DIR) CPPFLAGS += -DSQLITEPP_VERSION_MAJOR=$(VERSION_MAJOR) \ -DSQLITEPP_VERSION_MINOR=$(VERSION_MINOR) \ - -DSQLITEPP_VERSION_PATCH=$(VERSION_PATCH) + -DSQLITEPP_VERSION_PATCH=$(VERSION_PATCH) \ + -DSQLITEPP_VERSION=$(VERSION) CXXFLAGS += -fPIC LDFLAGS += $(LDFLAGS_SQLITE3) LDFLAGS_LIB += -Wl,-soname,lib$(TARGET_NAME_LIB).so.$(VERSION_MAJOR) diff --git a/include/sqlitepp/sqlitepp.h b/include/sqlitepp/sqlitepp.h index 1e7f322..82f4f99 100644 --- a/include/sqlitepp/sqlitepp.h +++ b/include/sqlitepp/sqlitepp.h @@ -120,8 +120,10 @@ #define SQLITEPP_VERSION_PATCH 0 #endif +#ifndef SQLITEPP_VERSION /// \brief The sqlitepp version in the format MAJOR.MINOR.PATCH. -const std::string version = "0.1.0"; +#define SQLITEPP_VERSION "0.0.0" +#ifndef /// \brief Contains all classes of the sqlitepp library. namespace sqlitepp { -- cgit v1.2.3