diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | include/sqlitepp/sqlitepp.h | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -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 { |