diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-23 18:46:23 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-23 18:46:23 +0100 |
commit | 67b5d507010be0528c886133cae73fff0e3c7712 (patch) | |
tree | 6966c86e53c365c96c9391e0d0914337042e7f36 /CMakeLists.txt | |
parent | 2c0f4a5abbc5663417d1390f658b387378e28978 (diff) | |
download | fastd-67b5d507010be0528c886133cae73fff0e3c7712.tar fastd-67b5d507010be0528c886133cae73fff0e3c7712.zip |
Use 'git describe' output as version string when available
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
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) |