ProfinetConnector/profinet_stack/osal/version.h.in

42 lines
1.2 KiB
C

/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* 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@"xx
#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 */