Skip to content

Commit 0def5e1

Browse files
Jenkins SEE Anna7Jenkins SEE Anna7
authored andcommitted
Adding the ability to specify build numbers through cmake command line parameters
1 parent 20b6032 commit 0def5e1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,18 @@ endif( )
3535
project( clFFT )
3636

3737
# Define a version for the code
38-
set( CLFFT_VERSION_MAJOR 2 )
39-
set( CLFFT_VERSION_MINOR 1 )
40-
set( CLFFT_VERSION_PATCH 0 )
38+
if( NOT DEFINED CLFFT_VERSION_MAJOR )
39+
set( CLFFT_VERSION_MAJOR 2 )
40+
endif( )
41+
42+
if( NOT DEFINED CLFFT_VERSION_MINOR )
43+
set( CLFFT_VERSION_MINOR 1 )
44+
endif( )
45+
46+
if( NOT DEFINED CLFFT_VERSION_PATCH )
47+
set( CLFFT_VERSION_PATCH 0 )
48+
endif( )
49+
4150
set( CLFFT_VERSION "${CLFFT_VERSION_MAJOR}.${CLFFT_VERSION_MINOR}.${CLFFT_VERSION_PATCH}")
4251

4352
# This is incremented when the ABI to the library changes

0 commit comments

Comments
 (0)