aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2015-09-28 12:17:19 +0200
committerFlorian Walch <florian@fwalch.com>2015-11-01 15:41:36 +0100
commita83020922d0dcdde4ca29394342901ea4bc71e8f (patch)
treec24946b59313578b38a31877086d6748fac51672 /config
parentcb87ea7e82f656711de27121bd67cea9afeab40b (diff)
downloadrneovim-a83020922d0dcdde4ca29394342901ea4bc71e8f.tar.gz
rneovim-a83020922d0dcdde4ca29394342901ea4bc71e8f.tar.bz2
rneovim-a83020922d0dcdde4ca29394342901ea4bc71e8f.zip
version: Prepare for releases.
* Hide commit information from --version if we can't find any (e.g. when building from tarball). To define a release in CMake, set NVIM_VERSION_PRERELEASE to "". This will modify --version output to: * Show annotated Git tag instead of commit hash (NVIM_VERSION_COMMIT). * Hide commit date (NVIM_VERSION_BUILD).
Diffstat (limited to 'config')
-rw-r--r--config/versiondef.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/versiondef.h.in b/config/versiondef.h.in
index a177e599ba..bef099e55f 100644
--- a/config/versiondef.h.in
+++ b/config/versiondef.h.in
@@ -6,7 +6,7 @@
#define NVIM_VERSION_PATCH @NVIM_VERSION_PATCH@
#define NVIM_VERSION_PRERELEASE "@NVIM_VERSION_PRERELEASE@"
#define NVIM_VERSION_BUILD "@NVIM_VERSION_BUILD@"
-#define NVIM_VERSION_COMMIT "@NVIM_VERSION_COMMIT@"
+#cmakedefine NVIM_VERSION_COMMIT "@NVIM_VERSION_COMMIT@"
#define NVIM_VERSION_CFLAGS "@NVIM_VERSION_CFLAGS@"
#define NVIM_VERSION_BUILD_TYPE "@NVIM_VERSION_BUILD_TYPE@"