summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-23 18:46:23 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-23 18:46:23 +0100
commit67b5d507010be0528c886133cae73fff0e3c7712 (patch)
tree6966c86e53c365c96c9391e0d0914337042e7f36 /CMakeLists.txt
parent2c0f4a5abbc5663417d1390f658b387378e28978 (diff)
downloadfastd-67b5d507010be0528c886133cae73fff0e3c7712.tar
fastd-67b5d507010be0528c886133cae73fff0e3c7712.zip
Use 'git describe' output as version string when available
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5de8ccd..8bc5c84 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,9 +1,15 @@
cmake_minimum_required(VERSION 2.8.3)
project(FASTD C)
-set(PROJECT_VERSION "7+")
set(CMAKE_MODULE_PATH ${FASTD_SOURCE_DIR})
+include(GitVersion)
+
+git_version(FASTD_VERSION ${FASTD_SOURCE_DIR})
+if(NOT FASTD_VERSION)
+ set(FASTD_VERSION "v7+")
+endif(NOT FASTD_VERSION)
+
find_package(BISON 2.5 REQUIRED)
find_package(FLEX REQUIRED)