aboutsummaryrefslogtreecommitdiffstats
path: root/VERSION.cmake
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-07-24 20:39:43 +0000
committerXin LI <delphij@FreeBSD.org>2016-07-24 20:39:43 +0000
commit7db3f078630cfaac36b16a61362821443c0f7229 (patch)
tree8f5d4f820d4e3f425b2873efe68942716ef4f767 /VERSION.cmake
downloadsrc-vendor/libdivsufsort.tar.gz
src-vendor/libdivsufsort.zip
Vendor import of libdivsufsort, a software library that implementsvendor/libdivsufsort/0.0.2015.10.27vendor/libdivsufsort
a lightweight suffix array construction algorithm. Obtained from: https://github.com/y-256/libdivsufsort
Notes
Notes: svn path=/vendor/libdivsufsort/dist/; revision=303275 svn path=/vendor/libdivsufsort/0.0.2015.10.27/; revision=303276; tag=vendor/libdivsufsort/0.0.2015.10.27
Diffstat (limited to 'VERSION.cmake')
-rw-r--r--VERSION.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/VERSION.cmake b/VERSION.cmake
new file mode 100644
index 000000000000..3f11ac18cbd8
--- /dev/null
+++ b/VERSION.cmake
@@ -0,0 +1,23 @@
+set(PROJECT_VERSION_MAJOR "2")
+set(PROJECT_VERSION_MINOR "0")
+set(PROJECT_VERSION_PATCH "2")
+set(PROJECT_VERSION_EXTRA "-1")
+set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
+set(PROJECT_VERSION_FULL "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}${PROJECT_VERSION_EXTRA}")
+
+set(LIBRARY_VERSION "3.0.1")
+set(LIBRARY_SOVERSION "3")
+
+## Git revision number ##
+if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
+ execute_process(COMMAND git describe --tags HEAD
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+ OUTPUT_VARIABLE GIT_DESCRIBE_TAGS ERROR_QUIET)
+ if(GIT_DESCRIBE_TAGS)
+ string(REGEX REPLACE "^v(.*)" "\\1" GIT_REVISION "${GIT_DESCRIBE_TAGS}")
+ string(STRIP "${GIT_REVISION}" GIT_REVISION)
+ if(GIT_REVISION)
+ set(PROJECT_VERSION_FULL "${GIT_REVISION}")
+ endif(GIT_REVISION)
+ endif(GIT_DESCRIBE_TAGS)
+endif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")