diff options
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) |