We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b6032 commit 0def5e1Copy full SHA for 0def5e1
src/CMakeLists.txt
@@ -35,9 +35,18 @@ endif( )
35
project( clFFT )
36
37
# Define a version for the code
38
-set( CLFFT_VERSION_MAJOR 2 )
39
-set( CLFFT_VERSION_MINOR 1 )
40
-set( CLFFT_VERSION_PATCH 0 )
+if( NOT DEFINED CLFFT_VERSION_MAJOR )
+ set( CLFFT_VERSION_MAJOR 2 )
+endif( )
41
+
42
+if( NOT DEFINED CLFFT_VERSION_MINOR )
43
+ set( CLFFT_VERSION_MINOR 1 )
44
45
46
+if( NOT DEFINED CLFFT_VERSION_PATCH )
47
+ set( CLFFT_VERSION_PATCH 0 )
48
49
50
set( CLFFT_VERSION "${CLFFT_VERSION_MAJOR}.${CLFFT_VERSION_MINOR}.${CLFFT_VERSION_PATCH}")
51
52
# This is incremented when the ABI to the library changes
0 commit comments