why does APP_BUILD_VERSION have different value on different platform?

the same code base,

on Linux:

#ifndef _APP_VERSION_H_
#define _APP_VERSION_H_

/*  values come from cmake/version.cmake
 * BUILD_VERSION related  values will be 'git describe',
 * alternatively user defined BUILD_VERSION.
 */

/* #undef ZEPHYR_VERSION_CODE */
/* #undef ZEPHYR_VERSION */

#define APPVERSION                   0x20200
#define APP_VERSION_NUMBER           0x202
#define APP_VERSION_MAJOR            0
#define APP_VERSION_MINOR            2
#define APP_PATCHLEVEL               2
#define APP_TWEAK                    0
#define APP_VERSION_STRING           "0.2.2"
#define APP_VERSION_EXTENDED_STRING  "0.2.2+0"
#define APP_VERSION_TWEAK_STRING     "0.2.2+0"

#define APP_BUILD_VERSION 0.1.0+0-65-g0222c98b6b9f


#endif /* _APP_VERSION_H_ */

and on windows;

      
#ifndef _APP_VERSION_H_
#define _APP_VERSION_H_

/*  values come from cmake/version.cmake
 * BUILD_VERSION related  values will be 'git describe',
 * alternatively user defined BUILD_VERSION.
 */

/* #undef ZEPHYR_VERSION_CODE */
/* #undef ZEPHYR_VERSION */

#define APPVERSION                   0x20200
#define APP_VERSION_NUMBER           0x202
#define APP_VERSION_MAJOR            0
#define APP_VERSION_MINOR            2
#define APP_PATCHLEVEL               2
#define APP_TWEAK                    0
#define APP_VERSION_STRING           "0.2.2"
#define APP_VERSION_EXTENDED_STRING  "0.2.2+0"
#define APP_VERSION_TWEAK_STRING     "0.2.2+0"

#define APP_BUILD_VERSION 0222c98b6b9f


#endif /* _APP_VERSION_H_ */

    

this is very strange. How to fix this?

Related