summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-01-15 20:16:37 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-01-15 20:16:37 +0100
commit96c3ad683d87918fd0e6451d37934ba8b1d03867 (patch)
tree5b51ac36b10db87de0b813bf43eba5277b5d063a
parent1c75236ea297e0d5dc36364f1399bf6732714c9c (diff)
downloadfastd-96c3ad683d87918fd0e6451d37934ba8b1d03867.tar
fastd-96c3ad683d87918fd0e6451d37934ba8b1d03867.zip
Move version number to build system
-rw-r--r--CMakeLists.txt1
-rw-r--r--config.h.in2
-rw-r--r--src/fastd.h3
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1629400..5de8ccd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 2.8.3)
project(FASTD C)
+set(PROJECT_VERSION "7+")
set(CMAKE_MODULE_PATH ${FASTD_SOURCE_DIR})
diff --git a/config.h.in b/config.h.in
index 0ad647c..8fdba1b 100644
--- a/config.h.in
+++ b/config.h.in
@@ -27,6 +27,8 @@
#ifndef _FASTD_CONFIG_H_
#define _FASTD_CONFIG_H_
+#define FASTD_VERSION "@PROJECT_VERSION@"
+
#cmakedefine WITH_CAPABILITIES
#cmakedefine USE_CRYPTO_AES128CTR
diff --git a/src/fastd.h b/src/fastd.h
index cadca36..2dd0996 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -47,9 +47,6 @@
#include <unistd.h>
-#define FASTD_VERSION "7+"
-
-
/* This must be adjusted when new methods are added */
#define MAX_METHODS 3