Skip to content

Commit 0afc053

Browse files
committed
Improved semantic versioning for building.
1 parent 375bc69 commit 0afc053

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@
2828
#include <zhivo/parser/ParserException.hpp>
2929
#include <zhivo/util/ArgumentParser.hpp>
3030

31-
#define ZHIVO_VERSION "(v1.0.0-beta)"
31+
#define ZHIVO_BUILD_TYPE "beta"
32+
#define ZHIVO_SEMANTIC_VERSION "v1.0.0-" ZHIVO_BUILD_TYPE
33+
34+
#ifdef __CUDACC__
35+
#define ZHIVO_BUILD_BACKEND "nvidia"
36+
#else
37+
#define ZHIVO_BUILD_BACKEND "openmp"
38+
#endif
39+
40+
#define ZHIVO_VERSION \
41+
ZHIVO_SEMANTIC_VERSION \
42+
"-" \
43+
ZHIVO_BUILD_BACKEND
44+
45+
#define ZHIVO_BUILD_TIME __TIME__ " " __DATE__
3246

3347
#endif

0 commit comments

Comments
 (0)