[clfft] 24/109: Adding the ability to specify build numbers through cmake command line parameters

Jérôme Kieffer kieffer-guest at moszumanska.debian.org
Wed May 20 07:29:22 UTC 2015


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

kieffer-guest pushed a commit to branch debian
in repository clfft.

commit 0def5e1870238103cb76f1a4c724e169ef058886
Author: Jenkins SEE Anna7 <JenkinsUser at see-anna7>
Date:   Wed Oct 2 14:24:10 2013 -0500

    Adding the ability to specify build numbers through cmake command line parameters
---
 src/CMakeLists.txt | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6c68791..1a76989 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -35,9 +35,18 @@ endif( )
 project( clFFT )
 
 # Define a version for the code
-set( CLFFT_VERSION_MAJOR 2 )
-set( CLFFT_VERSION_MINOR 1 )
-set( CLFFT_VERSION_PATCH 0 )
+if( NOT DEFINED CLFFT_VERSION_MAJOR )
+    set( CLFFT_VERSION_MAJOR 2 )
+endif( )
+
+if( NOT DEFINED CLFFT_VERSION_MINOR )
+    set( CLFFT_VERSION_MINOR 1 )
+endif( )
+
+if( NOT DEFINED CLFFT_VERSION_PATCH )
+    set( CLFFT_VERSION_PATCH 0 )
+endif( )
+
 set( CLFFT_VERSION "${CLFFT_VERSION_MAJOR}.${CLFFT_VERSION_MINOR}.${CLFFT_VERSION_PATCH}")
 
 # This is incremented when the ABI to the library changes

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



More information about the debian-science-commits mailing list