aboutsummaryrefslogtreecommitdiff
path: root/version.cc.in
diff options
context:
space:
mode:
Diffstat (limited to 'version.cc.in')
-rw-r--r--version.cc.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/version.cc.in b/version.cc.in
index 0eae647..07ae8e7 100644
--- a/version.cc.in
+++ b/version.cc.in
@@ -23,15 +23,27 @@
namespace nitrokey {
unsigned int get_major_library_version() {
+ #ifndef PROJECT_VERSION_MAJOR
return @PROJECT_VERSION_MAJOR@;
+ #else
+ return PROJECT_VERSION_MAJOR;
+ #endif
}
unsigned int get_minor_library_version() {
+ #ifndef PROJECT_VERSION_MINOR
return @PROJECT_VERSION_MINOR@;
+ #else
+ return PROJECT_VERSION_MINOR;
+ #endif
}
const char* get_library_version() {
+ #ifndef PROJECT_VERSION_GIT
return "@PROJECT_VERSION_GIT@";
+ #else
+ return PROJECT_VERSION_GIT;
+ #endif
}
}