32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
|
#ifndef @MYX_CMAKE_PROJECT_NAME_UPPER@_MYX_CMAKE_GIT_INFO_HPP_
|
||
|
#define @MYX_CMAKE_PROJECT_NAME_UPPER@_MYX_CMAKE_GIT_INFO_HPP_
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#if defined (@MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_REV)
|
||
|
#error "Duplicate definition of macros @MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_REV"
|
||
|
#else
|
||
|
#define @MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_REV "@MYX_CMAKE_GIT_REV@"
|
||
|
#endif
|
||
|
|
||
|
#if defined (@MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_DIFF)
|
||
|
#error "Duplicate definition of macros @MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_DIFF"
|
||
|
#else
|
||
|
#define @MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_DIFF "@MYX_CMAKE_GIT_DIFF@"
|
||
|
#endif
|
||
|
|
||
|
#if defined (@MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_BRANCH)
|
||
|
#error "Duplicate definition of macros @MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_BRANCH"
|
||
|
#else
|
||
|
#define @MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_BRANCH "@MYX_CMAKE_GIT_BRANCH@"
|
||
|
#endif
|
||
|
|
||
|
#if defined (@MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_TAG)
|
||
|
#error "Duplicate definition of macros @MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_TAG"
|
||
|
#else
|
||
|
#define @MYX_CMAKE_PROJECT_NAME_UPPER@_GIT_TAG "@MYX_CMAKE_GIT_TAG@"
|
||
|
#endif
|
||
|
|
||
|
#endif /* @MYX_CMAKE_PROJECT_NAME_UPPER@_MYX_CMAKE_GIT_INFO_HPP_ */
|
||
|
|