[arrayfire] 119/408: Added AF_API_VERSION

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit fb17b539b7e69c0592595ace1c968ff0ce2ec417
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Tue Jul 7 17:06:56 2015 -0400

    Added AF_API_VERSION
---
 CMakeModules/Version.cmake | 2 ++
 CMakeModules/version.h.in  | 1 +
 2 files changed, 3 insertions(+)

diff --git a/CMakeModules/Version.cmake b/CMakeModules/Version.cmake
index a3caacc..fb0d719 100644
--- a/CMakeModules/Version.cmake
+++ b/CMakeModules/Version.cmake
@@ -6,6 +6,8 @@ SET(AF_VERSION_MINOR "1")
 SET(AF_VERSION_PATCH "0")
 
 SET(AF_VERSION "${AF_VERSION_MAJOR}.${AF_VERSION_MINOR}.${AF_VERSION_PATCH}")
+SET(AF_API_VERSION ${AF_VERSION_MAJOR}${AF_VERSION_MINOR})
+
 EXECUTE_PROCESS(
     COMMAND git log -1 --format=%h
     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
diff --git a/CMakeModules/version.h.in b/CMakeModules/version.h.in
index a1a38c7..85f778b 100644
--- a/CMakeModules/version.h.in
+++ b/CMakeModules/version.h.in
@@ -13,4 +13,5 @@
 #define AF_VERSION_MAJOR @AF_VERSION_MAJOR@
 #define AF_VERSION_MINOR @AF_VERSION_MINOR@
 #define AF_VERSION_PATCH @AF_VERSION_PATCH@
+#define AF_API_VERSION   @AF_API_VERSION@
 #define AF_REVISION "@GIT_COMMIT_HASH@"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list