Implement version names for each Memgraph version

Summary:
With this diff, each build of Memgraph has a version that uniquely identifies
it. The given version uniquely identifies both official release builds and
development builds. Enterprise/community builds are also differentiated in the
version.  Also, support for custom suffixes is added to support custom builds
for customers.

Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2662
This commit is contained in:
Matej Ferencevic
2020-02-11 16:39:54 +01:00
parent 0a7de969f3
commit ffbe5b449d
9 changed files with 366 additions and 51 deletions

View File

@@ -1,7 +1,7 @@
# MemGraph Tools CMake configuration
# You should use the top level CMake configuration with -DTOOLS=ON option set.
project(memgraph_tools VERSION ${memgraph_VERSION})
project(memgraph_tools)
disallow_in_source_build()

View File

@@ -1,5 +1,5 @@
# Generate a version.hpp file
set(VERSION_STRING ${memgraph_VERSION})
set(VERSION_STRING ${MEMGRAPH_VERSION})
configure_file(../../src/version.hpp.in version.hpp @ONLY)
include_directories(${CMAKE_CURRENT_BINARY_DIR})