-
Notifications
You must be signed in to change notification settings - Fork 30
/
version.h.in
41 lines (33 loc) · 1.2 KB
/
version.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2017 rt-labs AB, Sweden.
*
* This software is licensed under the terms of the BSD 3-clause
* license. See the file LICENSE distributed with this software for
* full license information.
********************************************************************/
#ifndef VERSION_H
#define VERSION_H
#cmakedefine OSAL_GIT_REVISION "@OSAL_GIT_REVISION@"
#if !defined(OSAL_VERSION_BUILD) && defined(OSAL_VERSION_GIT)
#define OSAL_VERSION_BUILD OSAL_VERSION_GIT
#endif
/* clang-format-off */
#define OSAL_VERSION_MAJOR @OSAL_VERSION_MAJOR@
#define OSAL_VERSION_MINOR @OSAL_VERSION_MINOR@
#define OSAL_VERSION_PATCH @OSAL_VERSION_PATCH@
#if defined(OSAL_VERSION_BUILD)
#define OSAL_VERSION \
"@OSAL_VERSION_MAJOR@.@OSAL_VERSION_MINOR@.@OSAL_VERSION_PATCH@+"OSAL_VERSION_BUILD
#else
#define OSAL_VERSION \
"@OSAL_VERSION_MAJOR@.@OSAL_VERSION_MINOR@.@OSAL_VERSION_PATCH@"
#endif
/* clang-format-on */
#endif /* VERSION_H */