diff options
author | Robin Krahl <me@robin-krahl.de> | 2017-03-27 23:44:35 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2017-03-27 23:44:35 +0200 |
commit | a46be28d077b4f19f4e8537982487e33e20e4f0c (patch) | |
tree | b6428e5cdbcd1883c8a9b0a80351398231c56cf1 | |
parent | 004fbbe648f6a13a23da01fb98db53444b0087af (diff) | |
download | sqlitepp-a46be28d077b4f19f4e8537982487e33e20e4f0c.tar.gz sqlitepp-a46be28d077b4f19f4e8537982487e33e20e4f0c.tar.bz2 |
sqlitepp.h: Add complete version as SQLITEPP_VERSION
-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 { |